RE: [U-Boot-Users] Using the abatron to debug an image in flash

Hello Detlev, Wolfgang,
Thanks for your replies, you are completely correct, I should have realised! I had some problems compiling with -O0, however building with -O1 was just as good.
Now I have another problem, one which I hope you may have come across before, my debugger is failing to keep track of the updated addresses of static variables after relocation, which makes displaying variables kinda hard :)
Any ideas?
Mark.

In message 9901EE1E8F8BD3119109009027A1B5F596AE42@DIGINET2 you wrote:
Now I have another problem, one which I hope you may have come across before, my debugger is failing to keep track of the updated addresses of static variables after relocation, which makes displaying variables kinda hard :)
Accessing normal static variables should be no problem. It's just initialized data pointers which need manual relocation. I try to avoid this data type whenever possible, or we need to relocate it. If you find unrelocated initialized pointers please let me know.
But accessing the variables itself should work just fine - if they are pointers, they will just contain unrelocated addresses.
Best regards,
Wolfgang Denk

Hi Mark,
Now I have another problem, one which I hope you may have come across before, my debugger is failing to keep track of the updated addresses of static variables after relocation, which makes displaying variables kinda hard :)
Yes, this is a somewhat recurring question ;) Take a look here[1] and see if the information helps.
Cheers Detlev
[1] http://www.denx.de/twiki/bin/view/DULG/WrongDebugSymbolsAfterRelocation
participants (3)
-
Detlev Zundel
-
Mark Doherty
-
Wolfgang Denk