This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

'maybe_software_singlestep' inserts breakpoints when record replay


Hi guys,

I'm porting the process record to an arch which only supports software
singlestep.

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?

Thanks,
Pan Xingxing


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]