binutils-gdb/gdb/testsuite/gdb.ada
Tom de Vries 693196cba2 [gdb/testsuite] Fix gdb.ada/operator_bp.exp breakpoint location FAILs
When running test-case gdb.ada/operator_bp.exp with gcc-10, I run into:
...
FAIL: gdb.ada/operator_bp.exp: break "+"
FAIL: gdb.ada/operator_bp.exp: break "-"
FAIL: gdb.ada/operator_bp.exp: break "<"
FAIL: gdb.ada/operator_bp.exp: break "<="
FAIL: gdb.ada/operator_bp.exp: break ">"
FAIL: gdb.ada/operator_bp.exp: break ">="
FAIL: gdb.ada/operator_bp.exp: break "="
FAIL: gdb.ada/operator_bp.exp: break "and"
FAIL: gdb.ada/operator_bp.exp: break "or"
FAIL: gdb.ada/operator_bp.exp: break "xor"
FAIL: gdb.ada/operator_bp.exp: break "not"
...

The first FAIL is because two breakpoint locations are expected, but there are
more than 2:
...
(gdb) break "+"
Breakpoint 2 at 0x402c3c: "+". (6 locations)
(gdb) info break
Num     Type           Disp Enb Address            What
2       breakpoint     keep y   <MULTIPLE>
2.1                         y   0x0000000000402c3c in ops."+"
                                                   at operator_bp/ops.adb:25
2.2                         y   0x0000000000402e5b in ops."+"
                                                   at operator_bp/ops.adb:119
2.3                         y   0x0000000000414207 in
  system.storage_elements."+" at s-stoele.adb:82
2.4                         y   0x0000000000414404 in
  system.storage_elements."+" at s-stoele.adb:87
2.5                         y   0x0000000000414413 in
  system.storage_elements."+" at s-stoele.adb:87
2.6                         y   0x0000000000414430 in
  system.storage_elements."+" at s-stoele.adb:81
...

This can be traced back to a extra debug info in the executable:
...
$ readelf -w ops_test | grep system__storage_elements__Oadd
    <28104>   DW_AT_name        : system__storage_elements__Oadd__2
    <2812e>   DW_AT_name        : system__storage_elements__Oadd
...

Fix the FAILs by allowing more than the required amount of breakpoint
locations.

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2020-05-01  Tom de Vries  <tdevries@suse.de>

	* gdb.ada/operator_bp.exp: Allow more than required amount of
	breakpoint.
2020-05-01 17:57:56 +02:00
..
O2_float_param
access_tagged_param
access_to_packed_array
access_to_unbounded_array
addr_arith
aliased_array
arr_acc_idx_w_gap
arr_arr
arr_enum_idx_w_gap
array_bounds
array_char_idx
array_of_variable_length
array_ptr_renaming
array_return
array_subscript_addr
arraydim
arrayidx
arrayparam
arrayptr
assign_arr
atomic_enum
attr_ref_and_charlit
bad-task-bp-keyword
bias
big_packed_array
bp_c_mixed_case
bp_enum_homonym
bp_fun_addr
bp_inlined_func
bp_on_var
bp_range_type
bp_reset
byte_packed_arr
call_pn
catch_assert_if
catch_ex
catch_ex_std
char_enum
char_param
complete
cond_lang
convvar_comp
dgopt
disc_arr_bound
display_nested
dot_all
dyn_arrayidx
dyn_loc
dyn_stride
enum_idx_packed
excep_handle
exec_changed
expr_delims
expr_with_funcall
exprs
fin_fun_out
fixed_cmp
fixed_points
float_param
formatted_ref
frame_arg_lang
frame_args
fullname_bp
fun_addr
fun_in_declare
fun_overload_menu
fun_renaming
funcall_char
funcall_param
funcall_ptr
funcall_ref
homonym
info_addr_mixed_case
info_auto_lang
info_exc
info_locals_renaming
int_deref
interface
iwide
lang_switch
length_cond
maint_with_ada
mi_catch_assert
mi_catch_ex
mi_catch_ex_hand
mi_dyn_arr
mi_ex_cond
mi_exc_info
mi_interface
mi_ref_changeable
mi_string_access
mi_task_arg
mi_task_info
mi_var_array
mi_var_union
mi_variant Add tests for Ada changes 2020-04-24 13:40:33 -06:00
minsyms
mod_from_name
n_arr_bound
nested
notcplusplus
null_array
null_record
operator_bp
optim_drec
out_of_line_in_inlined
packed_array
packed_array_assign
packed_tagged
pckd_arr_ren
pckd_neg
pkd_arr_elem
pp-rec-component
print_chars
ptr_typedef
ptype_array
ptype_field
ptype_tagged_param
py_range
py_taft
rdv_wait
rec_comp
rec_return
ref_param
ref_tick_size
rename_subscript_param
repeat_dyn
same_component_name
same_enum
scalar_storage
scoped_watch
set_pckd_arr_elt
set_wstr
small_reg_param
start
str_binop_equal
str_ref_cmp
str_uninit
sub_variant Fix Ada val_print removal regression 2020-03-20 08:28:11 -06:00
sym_print_name
taft_type
tagged
tagged_access
tagged_not_init
task_bp
task_switch_in_core
tasks
tick_last_segv
tick_length_array_enum_idx
type_coercion
unc_arr_ptr_in_var_rec
unchecked_union
uninitialized_vars
var_arr_attrs
var_arr_typedef
var_rec_arr
variant Add support for variable field offsets 2020-04-24 13:40:32 -06:00
variant-record Select variant field when printing variant 2020-04-06 12:59:57 -06:00
variant_record_packed_array
varsize_limit
vla
watch_arg
watch_minus_l
whatis_array_val
widewide
win_fu_syms
O2_float_param.exp
access_tagged_param.exp
access_to_packed_array.exp [gdb] Fix segv in "maint print symbols" for ada exec 2020-03-11 00:30:54 +01:00
access_to_unbounded_array.exp
addr_arith.exp
aliased_array.exp
arr_acc_idx_w_gap.exp
arr_arr.exp
arr_enum_idx_w_gap.exp
array_bounds.exp
array_char_idx.exp
array_of_variable_length.exp
array_ptr_renaming.exp [gdb/testsuite] Add PR number in KFAIL in gdb.ada/array_ptr_renaming.exp 2020-04-28 06:22:36 +02:00
array_return.exp
array_subscript_addr.exp
arraydim.exp
arrayidx.exp
arrayparam.exp
arrayptr.exp
assign_1.exp
assign_arr.exp
atomic_enum.exp
attr_ref_and_charlit.exp
bad-task-bp-keyword.exp
bias.exp
big_packed_array.exp
boolean_expr.exp
bp_c_mixed_case.exp
bp_enum_homonym.exp
bp_fun_addr.exp
bp_inlined_func.exp
bp_on_var.exp
bp_range_type.exp
bp_reset.exp
byte_packed_arr.exp
call_pn.exp [gdb/testsuite] Add gcc/94469 xfails to gdb.ada/call_pn.exp 2020-04-08 06:57:56 +02:00
catch_assert_if.exp
catch_ex.exp
catch_ex_std.exp [gdb/testsuite] Add unsupported tests in catch_ex_std.exp 2020-02-13 15:34:06 +01:00
char_enum.exp
char_param.exp
complete.exp
cond_lang.exp
convvar_comp.exp
dgopt.exp
disc_arr_bound.exp
display_nested.exp
dot_all.exp
dyn_arrayidx.exp
dyn_loc.exp
dyn_stride.exp
enum_idx_packed.exp
excep_handle.exp
exec_changed.exp
expr_delims.exp
expr_with_funcall.exp
exprs.exp
fin_fun_out.exp
fixed_cmp.exp
fixed_points.exp
float_param.exp
formatted_ref.exp
frame_arg_lang.exp Update test cases that work with minimal encodings 2020-04-24 13:40:33 -06:00
frame_args.exp
fullname_bp.exp
fun_addr.exp
fun_in_declare.exp
fun_overload_menu.exp
fun_renaming.exp
funcall_char.exp
funcall_param.exp
funcall_ptr.exp
funcall_ref.exp Update test cases that work with minimal encodings 2020-04-24 13:40:33 -06:00
homonym.exp
info_addr_mixed_case.exp
info_auto_lang.exp
info_exc.exp
info_locals_renaming.exp
info_types.c
info_types.exp
int_deref.exp
interface.exp
iwide.exp
lang_switch.exp Update test cases that work with minimal encodings 2020-04-24 13:40:33 -06:00
length_cond.exp
maint_with_ada.exp
mi_catch_assert.exp
mi_catch_ex.exp
mi_catch_ex_hand.exp
mi_dyn_arr.exp
mi_ex_cond.exp
mi_exc_info.exp
mi_interface.exp
mi_ref_changeable.exp
mi_string_access.exp
mi_task_arg.exp
mi_task_info.exp
mi_var_array.exp Add tests for Ada changes 2020-04-24 13:40:33 -06:00
mi_var_union.exp Add tests for Ada changes 2020-04-24 13:40:33 -06:00
mi_variant.exp Add tests for Ada changes 2020-04-24 13:40:33 -06:00
minsyms.exp [gdb/testsuite] Set language in gdb.ada/minsym.exp 2020-03-11 19:37:01 +01:00
mod_from_name.exp
n_arr_bound.exp
nested.exp
notcplusplus.exp
null_array.exp
null_record.exp
operator_bp.exp [gdb/testsuite] Fix gdb.ada/operator_bp.exp breakpoint location FAILs 2020-05-01 17:57:56 +02:00
optim_drec.exp
out_of_line_in_inlined.exp
packed_array.exp
packed_array_assign.exp
packed_tagged.exp Update test cases that work with minimal encodings 2020-04-24 13:40:33 -06:00
pckd_arr_ren.exp
pckd_neg.exp
pkd_arr_elem.exp
pp-rec-component.exp
pp-rec-component.py
print_chars.exp
print_pc.exp
ptr_typedef.exp
ptype_arith_binop.exp
ptype_array.exp
ptype_field.exp
ptype_tagged_param.exp
ptype_union.c
ptype_union.exp
py_range.exp
py_taft.exp
rdv_wait.exp
rec_comp.exp
rec_return.exp
ref_param.exp
ref_tick_size.exp
rename_subscript_param.exp
repeat_dyn.exp
same_component_name.exp
same_enum.exp
scalar_storage.exp
scoped_watch.exp
set_pckd_arr_elt.exp
set_wstr.exp
small_reg_param.exp
start.exp
str_binop_equal.exp
str_ref_cmp.exp
str_uninit.exp
sub_variant.exp Fix Ada val_print removal regression 2020-03-20 08:28:11 -06:00
sym_print_name.exp
taft_type.exp
tagged.exp
tagged_access.exp
tagged_not_init.exp
task_bp.exp
task_switch_in_core.exp
tasks.exp
tick_last_segv.exp
tick_length_array_enum_idx.exp
type_coercion.exp
unc_arr_ptr_in_var_rec.exp
unchecked_union.exp Add tests for Ada changes 2020-04-24 13:40:33 -06:00
uninitialized_vars.exp
var_arr_attrs.exp
var_arr_typedef.exp
var_rec_arr.exp Update test cases that work with minimal encodings 2020-04-24 13:40:33 -06:00
variant-record.exp Select variant field when printing variant 2020-04-06 12:59:57 -06:00
variant.exp Add Python support for dynamic types 2020-04-24 13:40:33 -06:00
variant_record_packed_array.exp
varsize_limit.exp
vla.exp
watch_arg.exp
watch_minus_l.exp
whatis_array_val.exp
widewide.exp
win_fu_syms.exp