binutils-gdb/gdb/testsuite
Paul N. Hilfinger 97ddaa9bd5 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'.
2012-01-11 10:36:18 +00:00
..
boards Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
config Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.ada Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.arch Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.asm Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.base Add test for use of "<block>::<variable>" syntax for locals in watch. 2012-01-11 10:36:18 +00:00
gdb.cell Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.cp Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.disasm Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.dwarf2 Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.fortran Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.gdb Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.hp Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.java Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.linespec Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.mi 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu> 2012-01-05 13:11:31 +00:00
gdb.modula2 Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.multi Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.objc Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.opencl Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.opt Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.pascal Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
gdb.python 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu> 2012-01-05 13:11:31 +00:00
gdb.reverse Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
gdb.server Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
gdb.stabs Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
gdb.threads Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
gdb.trace Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
gdb.xml Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
lib Copyright year update in most files of the GDB Project. 2012-01-04 08:28:28 +00:00
.gdbinit
ChangeLog Add test for use of "<block>::<variable>" syntax for locals in watch. 2012-01-11 10:36:18 +00:00
Makefile.in Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
TODO
aclocal.m4
configure the "ambiguous linespec" series 2011-12-06 18:54:43 +00:00
configure.ac Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00
dg-extract-results.sh Copyright year update in most files of the GDB Project. 2012-01-04 08:17:56 +00:00