* 'maybe_software_singlestep' inserts breakpoints when record replay
@ 2010-11-09 15:40 Xingxing Pan
2010-11-09 22:44 ` Hui Zhu
0 siblings, 1 reply; 2+ messages in thread
From: Xingxing Pan @ 2010-11-09 15:40 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 'maybe_software_singlestep' inserts breakpoints when record replay
2010-11-09 15:40 'maybe_software_singlestep' inserts breakpoints when record replay Xingxing Pan
@ 2010-11-09 22:44 ` Hui Zhu
0 siblings, 0 replies; 2+ messages in thread
From: Hui Zhu @ 2010-11-09 22:44 UTC (permalink / raw)
To: Xingxing Pan; +Cc: gdb
Are you work in trunk?
I remember I check in a patch to fix this issue before 7.2 release.
Thanks,
Hui
On Tue, Nov 9, 2010 at 23:40, Xingxing Pan <forandom@gmail.com> wrote:
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-11-09 22:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-09 15:40 'maybe_software_singlestep' inserts breakpoints when record replay Xingxing Pan
2010-11-09 22:44 ` Hui Zhu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox