[PATCH] Fix gdb.ada/watch_arg.exp test with always inserted and displaced stepping on

Joel Brobecker brobecker@adacore.com
Tue Dec 6 12:09:00 GMT 2011


> The "problem" is that setting both always inserted and displaced
> stepping on, actually fixes PR7143.  That is, the test sets a
> watchpoint on X, and assumes that it does not trigger.  But, it
> actually should trigger.

Sometimes, I'm not sure what, if anything, goes through my brain...
You're right, of course.

> I notice that what the Foo procedure does is not really important,
> so an easy fix is to make Foo not touch X, thus we have the same
> behavior even if PR7143 is fixed.

I would rather make sure that X still gets referenced, to make sure
a smart tool/compiler/linker does not play games. Can you try the
attached?

-- 
Joel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watch.diff
Type: text/x-diff
Size: 3446 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20111206/829b5376/attachment.bin>


More information about the Gdb-patches mailing list