Hi,
I'm using CCS 12.1.0 for development of an ARM SoC (AM64x) boot code in Assembler and C, so I have a mix of *.S and *.c files. All my C and Assembler files are compiled/assembled with "-g" and "-gdwarf-3".
I can normally step the C code in both Editor window and in Disassembly window (there are "arrows" showing current instruction/line). In Disassembly window I see instructions mixed with C code (I enabled "Show source") and this is great.
The problem is with Assembler files (*.S). I can see in MAP file, that all the debug sections are generated for *.S files (including .debug_lines). However, in Disassembly window there are only labels and raw instructions without any comments and whitespacing from my original assembler sources. The Editor window claims that: "No source available for <<here_some_symbol_from_my_S_files>>" and there is a button "Show disassembly". But I'm 100% sure that all the debug info for my Assembler sources is available in the ELF file, because when I open any Assembler file in Editor window, I can:
- set a breakpoint (and execution will stop at it)
- use "Run to line", "Move to line" and "Resume at line"
but there is no "arrow" which shows current line of execution in any of my Assembler files (something which works for C code just fine).
I know that stepping through original Assembler sources is a feature that all the debuggers/IDEs (I've been using so far), have, including GDB. However, for some reason CCS does not allow that. Now the question is: Is it a bug? Is there a hidden option to enable? Is it a limitation of the underlying Eclipse?
Screenshot below.
I will be grateful for any input on this subject.
Thanks,
Sylwester