Hi
how can I debug mulitple (at least) two ELF files?
Means, I want to download the ELF files from two projects, where one is the main project and the other contains also code which is called (fixed addresses) by the first.
I thought "launch group" would be an option, but the manual does not explain its use and if I try, only one ELF will be loaded.
已解决! 转到解答。
"load" alone did not work.
I had to add my side-loaded file to "Other Symbols" tab, else all breakpoints are invalid when loading main file. Then the commands in "Startup" -> "Run commands" had to be
load "<path to file>"
set $pc = <start of main file>
else the pc was wrong.
Yes, you can debug multiple binaries. Just add the extra symbols to the actual debug session.
It works that way for any gdb based debugger, including the NXP MCUXpresso IDE.
I hope this helps,
Erich
"load" alone did not work.
I had to add my side-loaded file to "Other Symbols" tab, else all breakpoints are invalid when loading main file. Then the commands in "Startup" -> "Run commands" had to be
load "<path to file>"
set $pc = <start of main file>
else the pc was wrong.
AFAIK, this is not possible. A debugger instance can only handle a single image (symbol table). A debugger instance being a debugger connected to a single processor core.
You may be able to achieve something by linking together the two applications into a single application (AXF) with a single symbol table.