
4 Sep
2003
4 Sep
'03
2:32 p.m.
My question is, How can I debug the code __before__ the start_armboot function ? I would like to debug the assembler code from the first instruction ( I can do this with the jtag debugger but I can't see the related source instruction in the gdb ).
Juan,
I usually set TEXT_BASE=0 in board/lubbock/config.mk for debugging before start_armboot. No need to reflash. You should be able to reload symbols in gdb at offset 0, but for some reason I've never been able to get this to work correctly. So linking at 0 sets symbols for gdb correctly. Then you can use gdb in a normal manner.
HTH, Kyle.