aboutsummaryrefslogtreecommitdiff
path: root/setup.com
diff options
context:
space:
mode:
authorPaul N. Hilfinger <hilfinger@adacore.com>2012-01-11 10:36:18 +0000
committerPaul N. Hilfinger <hilfinger@adacore.com>2012-01-11 10:36:18 +0000
commit97ddaa9bd5f8f4d51d6dac55831d2494a0ea2bdd (patch)
tree9e3ee3ae9c11133ebc873841dacfd0417738e297 /setup.com
parentea7335759531113c855fab30d191462b44a08dd8 (diff)
downloadgdb-97ddaa9bd5f8f4d51d6dac55831d2494a0ea2bdd.zip
gdb-97ddaa9bd5f8f4d51d6dac55831d2494a0ea2bdd.tar.gz
gdb-97ddaa9bd5f8f4d51d6dac55831d2494a0ea2bdd.tar.bz2
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'.
Diffstat (limited to 'setup.com')
0 files changed, 0 insertions, 0 deletions