src/gdb/testsuite ChangeLog gdb.ada/watch_arg/ ...

brobecke@sourceware.org brobecke@sourceware.org
Tue Dec 6 14:00:00 GMT 2011


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



More information about the Gdb-cvs mailing list