This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Reverse debugging for arm baremetal targets?
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Terry Guo <flameroc at gmail dot com>
- Cc: Hui Zhu <teawater at gmail dot com>, gdb at sourceware dot org
- Date: Mon, 22 Jul 2013 08:38:42 +0200
- Subject: Re: Reverse debugging for arm baremetal targets?
- References: <CAGbRaL4P+nYgwQZHQYGbAsoCGd--+0NyVzfL8+uOFdd51TVF1w at mail dot gmail dot com> <CANFwon0sYZbXVfFDSJF-LyretWZcPgUKyNSWJTsDosNH9t7iBw at mail dot gmail dot com> <CAGbRaL4_DQ9fYXX8pj6x8rwXbMBsS7ZCi2D2jj_hSSvv-iZfdA at mail dot gmail dot com>
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