This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb/testsuite ChangeLog gdb.base/watchpoin ...
- From: hilfingr at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 11 Jan 2012 10:36:18 -0000
- Subject: src/gdb/testsuite ChangeLog gdb.base/watchpoin ...
CVSROOT: /cvs/src
Module name: src
Changes by: hilfingr@sourceware.org 2012-01-11 10:36:18
Modified files:
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.base: watchpoint.c watchpoint.exp
Log message:
Add test for use of "<block>::<variable>" syntax for locals in watch.
First, fix a technical problem with the function recurser. The test sets a
watch on local_x at a point where its value is technically undefined. The
test is written assuming that the value is not initially 2, but nothing in the
C standard guarantees that.
Second, augment the existing test for variables in recursive calls to check an
equivalent expression that explicitly sets the scope of the local variable
being tracked.
2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
* gdb.base/watchpoint.c (recurser): Initialize local_x.
(main): Repeat recurser call.
* gdb.base/watchpoint.exp: Check that 'watch recurser::local_x' is
equivalent to 'local_x'.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3015&r2=1.3016
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/watchpoint.c.diff?cvsroot=src&r1=1.8&r2=1.9
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/watchpoint.exp.diff?cvsroot=src&r1=1.39&r2=1.40