Avr-as appears to have a command line option called --gstabs that is supposed
to include debugging information in the symbol table. This information is placed
in the .stabs and associated assembler pseudo-ops. I'm able to use this feature
to a certain extent, simple labels for variables and function names. However,
when I try to put in something complicated the information does not seem to appear in the symbol table or else I get an assembler error.
I was trying to create definitions similar to that which avr-gcc outputs of the form:
.stabs "typedef char t:...",234,....
Anytime I have a space in the name field I get an error.
What options does avr-gcc invoke avr-as with? Evidently avr-gcc can get avr-as
to assemble such statements because I can build an executable using avr-gcc -g.
But when I use the standard tools to look for this avr-gcc debugging information I
can't locate it. I've tried using:
avr-objdump
avr-readelf
avr-nm
Where does this information get placed?
Does avr-gcc/avr-as support debugging at all?
I need this information because I am building an AVR simulator and symbolic
debugger to run under Linux since I can't get AVR Studio to behave. I'd like to
be able to support avr-gcc also but the lack of information is making it difficult. |
|
|