Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugging *.S assembly sources
Debugging *.S assembly sources [message #777367] Tue, 10 January 2012 10:50 Go to next message
Jan Pohanka is currently offline Jan PohankaFriend
Messages: 29
Registered: June 2011
Junior Member
Hello,

it is possible to debug *.S sources in Eclipse CDT? I'm trying to do that with embedded target. In the project there are several *.c sources which works fine in eclipse debugger, but whenever the program steps into the *.S file, eclipse says No source available for "function()". When I try to debug it directly using gdb in command line, gdb finds the *.S source and list it without any problems.

Is it possible to somehow tell eclipse to use *.S files for debugging?

Project is compiled with arm-none-eabi-gcc.

best regards
Jan

[Updated on: Wed, 11 January 2012 06:35]

Report message to a moderator

Re: Debugging *.S assembly sources [message #783647 is a reply to message #777367] Thu, 26 January 2012 07:05 Go to previous messageGo to next message
Jan Pohanka is currently offline Jan PohankaFriend
Messages: 29
Registered: June 2011
Junior Member
No advice? This is a serious problem in my project.

best regards
Jan
Re: Debugging *.S assembly sources [message #783702 is a reply to message #783647] Thu, 26 January 2012 08:59 Go to previous messageGo to next message
HagenFriend
Messages: 90
Registered: April 2010
Member
On 1/26/2012 8:05 AM, Honza wrote:
> No advice? This is a serious problem in my project.

http://catb.org/esr/faqs/smart-questions.html

Bonus tip: Google "Debugging Assembly in Eclipse"
Re: Debugging *.S assembly sources [message #783716 is a reply to message #783702] Thu, 26 January 2012 09:39 Go to previous message
Jan Pohanka is currently offline Jan PohankaFriend
Messages: 29
Registered: June 2011
Junior Member
Hagen wrote on Thu, 26 January 2012 03:59
Bonus tip: Google "Debugging Assembly in Eclipse"


Thank you Hagen for pointing to the solution (http://dorkasaurusrex.blogspot.com/2009/05/debugging-assembly-in-eclipse.html). I have searched the google before, but I have always included *.S to the query and found no solution then.

The key is to have -gstabs option in the ASFLAGS. I had -gdwarf-2 there but it probably needs higher version of gdb, that I have.

regards
Jan

[Updated on: Thu, 26 January 2012 09:42]

Report message to a moderator

Previous Topic:Debugger config -- CDT/gdb error
Next Topic:C++ program built successfully but does not run
Goto Forum:
  


Current Time: Tue Apr 23 06:35:18 GMT 2024

Powered by FUDForum. Page generated in 0.02912 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top