Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* PRecord and hardware watchpoint
@ 2010-02-17 17:41 Marc Khouzam
  2010-02-17 18:22 ` Pedro Alves
  2010-02-18 18:15 ` Michael Snyder
  0 siblings, 2 replies; 4+ messages in thread
From: Marc Khouzam @ 2010-02-17 17:41 UTC (permalink / raw)
  To: 'gdb@sourceware.org'

Hi,

someone asked me if watchpoints worked with Reverse debugging (PRecord),
so I gave it a try.  What I found is that software watchpoints work but
not hardware watchpoints.  That sounds reasonable to me.

What seemed strange was that hardware watchpoints did not work
even when doing normal forward execution with PRecord enabled.
I guess during replay it makes sense, but during record?

Just wondering.

Thanks

Marc

P.S. It would be nice to have some kinds of warning to tell user
not to set hw watchpoints when PRecord is being used.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PRecord and hardware watchpoint
  2010-02-17 17:41 PRecord and hardware watchpoint Marc Khouzam
@ 2010-02-17 18:22 ` Pedro Alves
  2010-02-18 18:15 ` Michael Snyder
  1 sibling, 0 replies; 4+ messages in thread
From: Pedro Alves @ 2010-02-17 18:22 UTC (permalink / raw)
  To: gdb; +Cc: Marc Khouzam

On Wednesday 17 February 2010 17:41:00, Marc Khouzam wrote:
> Hi,
> 
> someone asked me if watchpoints worked with Reverse debugging (PRecord),
> so I gave it a try.  What I found is that software watchpoints work but
> not hardware watchpoints.  That sounds reasonable to me.
> 
> What seemed strange was that hardware watchpoints did not work
> even when doing normal forward execution with PRecord enabled.
> I guess during replay it makes sense, but during record?
> 
> Just wondering.
> 

Should work since:

2009-11-22  Pedro Alves  <pedro@codesourcery.com>

        Make hardware breakpoints work for process repord.

        * record.c (record_wait): Only adjust PC on software breakpoints
        hits.

2009-11-22  Pedro Alves  <pedro@codesourcery.com>
            Michael Snyder  <msnyder@vmware.com>

        Make hardware watchpoints work for process record.
(...)

That's post 7.0 though.

> Thanks
> 
> Marc
> 
> P.S. It would be nice to have some kinds of warning to tell user
> not to set hw watchpoints when PRecord is being used.
> 


-- 
Pedro Alves


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: PRecord and hardware watchpoint
  2010-02-17 17:41 PRecord and hardware watchpoint Marc Khouzam
  2010-02-17 18:22 ` Pedro Alves
@ 2010-02-18 18:15 ` Michael Snyder
  2010-02-19 13:51   ` Marc Khouzam
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2010-02-18 18:15 UTC (permalink / raw)
  To: Marc Khouzam; +Cc: 'gdb@sourceware.org'

Marc Khouzam wrote:
> Hi,
> 
> someone asked me if watchpoints worked with Reverse debugging (PRecord),
> so I gave it a try.  What I found is that software watchpoints work but
> not hardware watchpoints.  That sounds reasonable to me.
> 
> What seemed strange was that hardware watchpoints did not work
> even when doing normal forward execution with PRecord enabled.
> I guess during replay it makes sense, but during record?
> 
> Just wondering.
> 
> Thanks
> 
> Marc
> 
> P.S. It would be nice to have some kinds of warning to tell user
> not to set hw watchpoints when PRecord is being used.

Were you using the release or CVS version?
CVS head should work.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: PRecord and hardware watchpoint
  2010-02-18 18:15 ` Michael Snyder
@ 2010-02-19 13:51   ` Marc Khouzam
  0 siblings, 0 replies; 4+ messages in thread
From: Marc Khouzam @ 2010-02-19 13:51 UTC (permalink / raw)
  To: 'Michael Snyder', 'Pedro Alves'
  Cc: 'gdb@sourceware.org'

I got the latest HEAD and gave it a go.
Very cool!

Thanks both 

> -----Original Message-----
> From: gdb-owner@sourceware.org 
> [mailto:gdb-owner@sourceware.org] On Behalf Of Michael Snyder
> Sent: Thursday, February 18, 2010 1:16 PM
> To: Marc Khouzam
> Cc: 'gdb@sourceware.org'
> Subject: Re: PRecord and hardware watchpoint
> 
> Marc Khouzam wrote:
> > Hi,
> > 
> > someone asked me if watchpoints worked with Reverse 
> debugging (PRecord),
> > so I gave it a try.  What I found is that software 
> watchpoints work but
> > not hardware watchpoints.  That sounds reasonable to me.
> > 
> > What seemed strange was that hardware watchpoints did not work
> > even when doing normal forward execution with PRecord enabled.
> > I guess during replay it makes sense, but during record?
> > 
> > Just wondering.
> > 
> > Thanks
> > 
> > Marc
> > 
> > P.S. It would be nice to have some kinds of warning to tell user
> > not to set hw watchpoints when PRecord is being used.
> 
> Were you using the release or CVS version?
> CVS head should work.
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-19 13:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-17 17:41 PRecord and hardware watchpoint Marc Khouzam
2010-02-17 18:22 ` Pedro Alves
2010-02-18 18:15 ` Michael Snyder
2010-02-19 13:51   ` Marc Khouzam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox