binutils-gdb/gdb/testsuite/gdb.ada
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
..
array_bounds Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
array_return Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
array_subscript_addr Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
arrayidx Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
arrayparam Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
arrayptr Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
atomic_enum Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
call_pn amd64: Integer parameters in function calls on Windows. 2010-01-29 05:19:23 +00:00
catch_ex Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
char_param Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
complete
cond_lang Use breakpoint location to parse condition over current language. 2010-05-17 17:23:33 +00:00
dyn_loc Wrong value printed by info locals for dynamic object. 2010-04-20 22:26:57 +00:00
exec_changed Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
exprs Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fixed_cmp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fixed_points Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
formatted_ref Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
frame_args Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fun_addr Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fun_in_declare Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
funcall_param Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
homonym Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
int_deref Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
interface Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
lang_switch Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
mod_from_name Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
nested Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
null_array Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
null_record Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
packed_array Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
packed_tagged Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
print_chars Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
ptype_field Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
ptype_tagged_param * gdb.ada/ptype_tagged_param: New testcase. 2010-02-09 13:16:33 +00:00
rec_return amd64 - function returning record with field straddling 2 registers 2010-01-29 14:39:04 +00:00
ref_param Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
ref_tick_size Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
start Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
str_ref_cmp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
sym_print_name Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
taft_type Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
tagged Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
tasks Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
tick_last_segv Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
type_coercion Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
uninitialized_vars
variant_record_packed_array Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
watch_arg make parameter being watched is a non-constant. 2010-05-17 21:32:57 +00:00
Makefile.in
array_bounds.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
array_return.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
array_subscript_addr.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
arrayidx.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
arrayparam.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
arrayptr.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
assign_1.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
atomic_enum.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
boolean_expr.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
call_pn.exp amd64: Integer parameters in function calls on Windows. 2010-01-29 05:19:23 +00:00
catch_ex.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
char_param.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
complete.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
cond_lang.exp Use breakpoint location to parse condition over current language. 2010-05-17 17:23:33 +00:00
dyn_loc.exp Wrong value printed by info locals for dynamic object. 2010-04-20 22:26:57 +00:00
exec_changed.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
exprs.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fixed_cmp.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fixed_points.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
formatted_ref.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
frame_args.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fun_addr.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
fun_in_declare.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
funcall_param.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
gnat_ada.gpr Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
homonym.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
info_types.c "unsupported language" error in info types when using Ada. 2010-04-20 22:38:02 +00:00
info_types.exp "unsupported language" error in info types when using Ada. 2010-04-20 22:38:02 +00:00
int_deref.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
interface.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
lang_switch.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
mod_from_name.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
nested.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
null_array.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
null_record.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
packed_array.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
packed_tagged.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
print_chars.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
print_pc.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
ptype_arith_binop.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
ptype_field.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
ptype_tagged_param.exp * gdb.ada/ptype_tagged_param: New testcase. 2010-02-09 13:16:33 +00:00
rec_return.exp amd64 - function returning record with field straddling 2 registers 2010-01-29 14:39:04 +00:00
ref_param.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
ref_tick_size.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
start.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
str_ref_cmp.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
sym_print_name.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
taft_type.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
tagged.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
tasks.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
tick_last_segv.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
type_coercion.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
uninitialized_vars.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
variant_record_packed_array.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00
watch_arg.exp Update copyright year in most headers. 2010-01-01 07:32:07 +00:00