OSDN Git Service

fix incorrect assumption in gdb.ada/watch_arg
authorbrobecke <brobecke>
Tue, 6 Dec 2011 14:00:36 +0000 (14:00 +0000)
committerbrobecke <brobecke>
Tue, 6 Dec 2011 14:00:36 +0000 (14:00 +0000)
commit493062e4529a8a1b10357ed5f9ac2e37c6dd56bd
tree26d35271f6c679ca7bb8b64e67af241e3911f9f9
parent97b81173c44eb1cdda2262b84d40b2725c950c33
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.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/watch_arg/pck.adb [new file with mode: 0644]
gdb/testsuite/gdb.ada/watch_arg/pck.ads [new file with mode: 0644]
gdb/testsuite/gdb.ada/watch_arg/watch.adb