binutils-gdb/gdb/testsuite
Joel Brobecker c81c812a7a make parameter being watched is a non-constant.
The gdb.ada/watch_arg testcase is testing a situation where we are
leaving the scope where a parameter being watched is defined. The
testcase is a little non-sensical that we're watching a parameter
declared as an "access integer", which in non-Ada terms means
a constant pointer.  Doesn't make much sense to watch a constant...

So this patch changes the code a little to use an "in out Integer",
which makes the parameter a non-constant integer, rather than a
constant access Integer.  I verified that I could still reproduce
the problem with the original debugger and the modified testcase.

This was motivated by a patch that Sergio is about to submit which
will forbid the user from watching a constant (discussed on IRC)

2010-05-17  Joel Brobecker  <brobecker@adacore.com>

        * gdb.ada/watch_arg/watch.adb: Rewrite testcase to avoid the
        parameter that we want to watch being a constant.

Tested on both sparc-solaris (where the ancient debugger could still
run ;-), and on x86_64-linux.
2010-05-17 21:32:57 +00:00
..
config Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
gdb.ada make parameter being watched is a non-constant. 2010-05-17 21:32:57 +00:00
gdb.arch Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.asm Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.base Some uses of bug_id and prms_id just reappeared - remove them. 2010-05-17 17:06:01 +00:00
gdb.cell Sync Libtool from GCC. 2010-01-09 21:11:44 +00:00
gdb.cp Some uses of bug_id and prms_id just reappeared - remove them. 2010-05-17 17:06:01 +00:00
gdb.disasm Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.dwarf2 gdb/testsuite/ 2010-05-08 04:55:32 +00:00
gdb.fortran Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.gdb Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.hp Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.java Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.mi Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.modula2 Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
gdb.multi Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
gdb.objc Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.opt Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
gdb.pascal Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.python 2010-05-14 Phil Muldoon <pmuldoon@redhat.com> 2010-05-14 11:11:28 +00:00
gdb.reverse Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.server * lib/gdbserver-support.exp (gdbserver_download_current_prog): Rename 2010-01-12 00:50:26 +00:00
gdb.stabs Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.threads Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.trace Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.xml * gdbtypes.c (append_composite_type_field_raw): New. 2010-03-01 17:19:23 +00:00
lib testsuite: Prevent writes to prms_id and bug_id. 2010-05-17 17:11:28 +00:00
.gdbinit
ChangeLog make parameter being watched is a non-constant. 2010-05-17 21:32:57 +00:00
Makefile.in gdb/testsuite/ 2010-04-09 20:50:46 +00:00
TODO
aclocal.m4 gdb 2009-06-29 16:41:45 +00:00
configure testsuite/ 2010-02-19 17:13:21 +00:00
configure.ac testsuite/ 2010-02-19 17:13:21 +00:00
dg-extract-results.sh gdb/testsuite/ 2010-03-22 20:38:58 +00:00