This is the mail archive of the
mailing list for the GDB project.
'maybe_software_singlestep' inserts breakpoints when record replay
- From: Xingxing Pan <forandom at gmail dot com>
- To: gdb <gdb at sourceware dot org>
- Date: Tue, 9 Nov 2010 23:40:45 +0800
- Subject: 'maybe_software_singlestep' inserts breakpoints when record replay
I'm porting the process record to an arch which only supports software
And I found that in the function 'resume', the function
'maybe_software_singlestep' inserts a software singlestep breakpoint
although the inferior is in record replay, and return a zero value to
the variable 'step'. When I use the command 'reverse-stepi', gdb
cannot stop after reversely executing one instruction .
I try to prevent 'maybe_software_singlestep' from inserting a software
singlestep breakpoint when 'RECORD_IS_REPLAY' is asserted. Then the
error is disappeared.
I cannot figure out why we need to insert a software singlestep
breakpoint when gdb is travelling along the record_list back and
forth. Is this a bug?