Hi,
using imx rt 1024, for my position independent code experiment I am trying to debug my "offsetted" application, but gdb isn't loading the symbols.
What am I doing wrong?
bp1979_0-1651569283441.png
For background:
- my bootloader sits at 0x60000000
- app1 (not uploaded) normally sits at 0x60020000
- app2 is uploaded with above offsets of 0x10000
When I debug the app with above configuration, when I press suspend debugger I can analyze the memory. I can see that my app is properly uploaded to 0x6003000. But the debugger (gdb) is not able to locate the symbols
bp1979_1-1651569461045.png
(memory shows my app is in memory on desired offset location)
bp1979_2-1651569510969.png
PS: vector table and .got are both in sram. in my startup code I properly patch the ISR vector addresses, so that's not the problem. When I put a breakpoint in the first line of my ResetHandler, it doesn't hit. When I pause my application once started, it can't find symbols.
Many thanks!