Re: Reverse debugging for arm baremetal targets?
Jan Kratochvil <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 22 Jul 2013 08:10:33 +0200, Terry Guo wrote: > Thanks for your reply. I did some tests and it seems to me that > reverse debugging doesn't work for baremetal targets. It looks so: $ grep ' set_gdbarch_process_record ' gdb/* amd64-linux-tdep.c: set_gdbarch_process_record (gdbarch, i386_process_record); arm-linux-tdep.c: set_gdbarch_process_record (gdbarch, arm_process_record); i386-linux-tdep.c: set_gdbarch_process_record (gdbarch, i386_process_record); moxie-tdep.c: set_gdbarch_process_record (gdbarch, moxie_process_record); But the OS dependent part seems to be missing there: arm-tdep.h: /* Parse swi insn args, sycall record. */ int (*arm_swi_record) (struct regcache *regcache); - which does not seem to be set anywhere So the current set_gdbarch_process_record initialization could be possibly moved to arm-tdep.c. But I did not play more with it. Jan