This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb/testsuite ChangeLog gdb.ada/watch_arg/ ...
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 6 Dec 2011 14:00:37 -0000
- Subject: src/gdb/testsuite ChangeLog gdb.ada/watch_arg/ ...
CVSROOT: /cvs/src
Module name: src
Changes by: brobecke@sourceware.org 2011-12-06 14:00:37
Modified files:
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.ada/watch_arg: watch.adb
Added files:
gdb/testsuite/gdb.ada/watch_arg: pck.adb pck.ads
Log message:
fix incorrect assumption in gdb.ada/watch_arg
The testcase is assuming that the parameter being watched isn't being
modified. But the way the test program is written, this is not true
at all. So this changes fixes the code to still reference the variable,
but in a way that does not modify its value.
gdb/testsuite:
* gdb.ada/watch_arg/pck.ads, gdb.ada/watch_arg/pck.adb: New files.
* gdb.ada/watch_arg/watch.adb: Adjust code to avoid modification
of parameter X in procedure Foo.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2964&r2=1.2965
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/watch_arg/pck.adb.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/watch_arg/pck.ads.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.ada/watch_arg/watch.adb.diff?cvsroot=src&r1=1.8&r2=1.9