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]

Re: gdb.base/watchpoint-solib.exp


On Sunday 13 July 2008 21:04:56 Mark Kettenis wrote:
> > From: Vladimir Prus <vladimir@codesourcery.com>
> > Date:  Sun, 13 Jul 2008 20:48:39 +0400
> > 
> > Mark Kettenis wrote:
> > 
> > > Hi Vladimir,
> > > 
> > > The watchpoint-solib.exp test seems to assume hardware watchpoints:
> > > 
> > >   gdb_test "watch g" "Hardware watchpoint 3: g" "set watchpoint on g"
> > > 
> > > Is this intentional, or should this be changed to accept "normal"
> > > software watchpoints too?
> > 
> > Hi Mark,
> > 
> > this test was added by
> > http://article.gmane.org/gmane.comp.gdb.patches/37556 and that
> > commits changes the way the memory locations to watch are stored and
> > handled for watchpoint. Since software watchpoints do not actually
> > have any memory locations to watch, I suspect that the crash this
> > test is supposed to guard against did not happen with software
> > watchpoints.
> 
> Ah, if you want to explicity test hardware watchpoints, perhaps we
> should test that the target supports them and skip the test otherwise.

Is there a read-made way to check if hardware watchpoints are supported?

- Volodya


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