Debugging u-boot after relocation on arm machie
Hello,
I am working on u-boot under qemu. Debugging before u-boots relocate itself works just fine. After relocation and reloading elf in gdb, qemu does no stop on breakpoint. Generally I follow this instruction:
http://www.denx.de/wiki/view/DULG/DebuggingUBoot
I am debuging under eclipse - I'll test with clean gdb to be sure. As I see some topics in this list, there is some work ongoing regarding self-modyfying code on arm and gdb stub.
Does someone tries to debug such applications?
Regards,
Marcin
Quoted 5 lines · mar.krzeminski
Hello,
I am working on u-boot under qemu. Debugging before u-boots relocate itself works just fine.
After relocation and reloading elf in gdb, qemu does no stop on breakpoint.
Are you using software breakpoints or hardware breakpoints? In case you're using software breakpoints, maybe they get clobbered by the relocation / reloading?
Thomas
2015-10-08 13:22 GMT+02:00 Thomas Huth <[email protected]>:
Quoted 8 lines · mar.krzeminski
Quoted 5 lines
Hello,
I am working on u-boot under qemu. Debugging before u-boots relocate itself works just fine.
After relocation and reloading elf in gdb, qemu does no stop onbreakpoint.
Quoted 7 lines
Are you using software breakpoints or hardware breakpoints? In case you're using software breakpoints, maybe they get clobbered by the relocation / reloading?
Thomas
It seem that it was cause by eclipse - trace mode option.
If I set it to normal all works as it should - I can debug relocated code. I am using sw breakpoints
Thanks,
Marcin