old-cross-binutils/gdb/testsuite/gdb.ada
Joel Brobecker 4ae24af054 wrong language used when re-setting breakpoint
The debugger sometimes fails to re-set a breakpoint as follow,
causing it to become disabled:

    (gdb) b nested_sub
    Breakpoint 1 at 0x401cec: file foo.adb, line 7.
    (gdb) b do_nothing
    Breakpoint 2 at 0x401cdc: file pck.adb, line 4.
    (gdb) run
    Starting program: /[...]/foo
    Error in re-setting breakpoint 1: Function "nested_sub" not defined.

    Breakpoint 2, pck.do_nothing () at pck.adb:4
    4             null;

This only happens on machines where the debug-file-directory is
a valid directory name.

The reason behind the error is that the linespec code that re-sets
the breakpoints uses the current_language global when iterating
over a symtab's symbols. However, the that global gets switched from
Ada to C during the startup phase, probably as a side-effect of stopping
in some system code for which debugging info is available. The fix
is to make sure that we use the correct language.

gdb/ChangeLog:

        * linespec.c (iterate_over_all_matching_symtabs): Use the correct
        language when iterating over symbols.

gdb/testsuite/ChangeLog:

        * gdb.ada/bp_reset: New testcase.
2012-09-18 16:52:19 +00:00
..
aliased_array [Ada] Handle reference to array descriptors 2012-02-29 19:33:02 +00:00
array_bounds
array_return
array_subscript_addr
arrayidx
arrayparam
arrayptr
atomic_enum
bad-task-bp-keyword stop parsing breakpoint command if invalid keyword found 2012-06-05 13:50:13 +00:00
bp_enum_homonym New Ada testcase (bp_enum_homonym). 2012-03-06 17:04:59 +00:00
bp_on_var New Ada testcase (bp_on_var.exp). 2012-03-06 17:33:32 +00:00
bp_range_type testcase for "gdb-ax.c: Add handling of TYPE_CODE_RANGE types" 2012-03-14 01:38:51 +00:00
bp_reset wrong language used when re-setting breakpoint 2012-09-18 16:52:19 +00:00
call_pn
catch_ex
char_enum
char_param
complete
cond_lang
dyn_loc
enum_idx_packed [Ada] print packed arrays indexed by enumerated type 2012-02-29 19:34:40 +00:00
exec_changed
exprs
fixed_cmp
fixed_points
formatted_ref
frame_args
fullname_bp
fun_addr
fun_in_declare
funcall_param
homonym
info_locals_renaming Testcase: "info locals" with Ada renamings. 2012-03-02 19:31:53 +00:00
int_deref
interface
lang_switch
mi_catch_ex
mi_task_arg GDB/MI: crash printing "_task" (Ada) argument 2012-02-03 07:32:40 +00:00
mi_task_info
mod_from_name
nested
null_array
null_record
operator_bp New Ada testcase for breakpoints on operators. 2012-03-02 20:36:41 +00:00
optim_drec crash printing optimized out variant type 2012-09-10 22:18:24 +00:00
packed_array
packed_tagged 2012-07-04 Pedro Alves <palves@redhat.com> 2012-07-04 10:48:32 +00:00
print_chars
ptr_typedef
ptype_field
ptype_tagged_param
rdv_wait DWARF frame unwinder executes one too many rows 2012-08-16 15:45:46 +00:00
rec_return
ref_param
ref_tick_size
same_enum
set_pckd_arr_elt [Ada] Crash when trying to set value of packed array element 2012-03-16 17:55:45 +00:00
small_reg_param
start
str_ref_cmp
sym_print_name
taft_type
tagged
tagged_not_init [Ada] avoid error message pollution with uninitialized tagged variable 2012-02-29 19:46:48 +00:00
task_bp
tasks
tick_last_segv
type_coercion
uninitialized_vars
variant_record_packed_array
watch_arg
whatis_array_val [Ada] whatis not printing array type name for value from history 2012-02-29 19:29:12 +00:00
widewide
aliased_array.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
array_bounds.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
array_return.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
array_subscript_addr.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
arrayidx.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
arrayparam.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
arrayptr.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
assign_1.exp
atomic_enum.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
bad-task-bp-keyword.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
boolean_expr.exp
bp_enum_homonym.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
bp_on_var.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
bp_range_type.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
bp_reset.exp wrong language used when re-setting breakpoint 2012-09-18 16:52:19 +00:00
call_pn.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
catch_ex.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
char_enum.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
char_param.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
complete.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
cond_lang.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
dyn_loc.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
enum_idx_packed.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
exec_changed.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
exprs.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
fixed_cmp.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
fixed_points.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
formatted_ref.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
frame_args.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
fullname_bp.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
fun_addr.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
fun_in_declare.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
funcall_param.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
gnat_ada.gpr
homonym.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
info_locals_renaming.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
info_types.c
info_types.exp
int_deref.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
interface.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
lang_switch.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
Makefile.in * Makefile.in (clean): Remove Fission .dwo and .dwp files. 2012-05-17 19:03:59 +00:00
mi_catch_ex.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
mi_task_arg.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
mi_task_info.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
mod_from_name.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
nested.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
null_array.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
null_record.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
operator_bp.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
optim_drec.exp crash printing optimized out variant type 2012-09-10 22:18:24 +00:00
packed_array.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
packed_tagged.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
print_chars.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
print_pc.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
ptr_typedef.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
ptype_arith_binop.exp
ptype_field.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
ptype_tagged_param.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
rdv_wait.exp gdb/testsuite/ 2012-08-27 16:34:35 +00:00
rec_return.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
ref_param.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
ref_tick_size.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
same_enum.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
set_pckd_arr_elt.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
small_reg_param.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
start.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
str_ref_cmp.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
sym_print_name.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
taft_type.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
tagged.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
tagged_not_init.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
task_bp.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
tasks.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
tick_last_segv.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
type_coercion.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
uninitialized_vars.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
variant_record_packed_array.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
watch_arg.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
whatis_array_val.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00
widewide.exp * lib/ada.exp (standard_ada_testfile): New proc. 2012-07-26 18:43:02 +00:00