From f2e0d4b4ebd224797385ca22a031d74346b2475a Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Sun, 11 Jan 2015 15:45:43 -0800 Subject: Require numeric attributes to specify the form. gdb/testsuite/ChangeLog: * lib/dwarf.exp (Dwarf): Flag an error if a numeric attribute value is given without an explicit form. * gdb.dwarf2/arr-subrange.exp: Specify forms for all numeric attributes. * gdb.dwarf/corrupt.exp: Ditto. * gdb.dwarf2/enum-type.exp: Ditto. * gdb.trace/entry-values.exp: Ditto. * gdb.trace/unavailable-dwarf-piece.exp: Ditto. --- gdb/testsuite/gdb.trace/entry-values.exp | 6 +++--- gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'gdb/testsuite/gdb.trace') diff --git a/gdb/testsuite/gdb.trace/entry-values.exp b/gdb/testsuite/gdb.trace/entry-values.exp index 2548e89..0cf5615 100644 --- a/gdb/testsuite/gdb.trace/entry-values.exp +++ b/gdb/testsuite/gdb.trace/entry-values.exp @@ -102,7 +102,7 @@ Dwarf::assemble $asm_file { } foo_label: subprogram { - {decl_file 1} + {decl_file 1 sdata} {MACRO_AT_func { foo ${srcdir}/${subdir}/${srcfile} }} } { formal_parameter { @@ -119,10 +119,10 @@ Dwarf::assemble $asm_file { subprogram { {name bar} - {decl_file 1} + {decl_file 1 sdata} {low_pc $bar_start addr} {high_pc "$bar_start + $bar_length" addr} - {GNU_all_call_sites 1} + {GNU_all_call_sites 1 sdata} } { formal_parameter { {type :$int_label} diff --git a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp index 75b8bf5..17d3a14 100644 --- a/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp +++ b/gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp @@ -44,8 +44,8 @@ Dwarf::assemble $asm_file { struct_s_label: DW_TAG_structure_type { {name s} {byte_size 3 DW_FORM_sdata} - {decl_file 1} - {decl_line 1} + {decl_file 1 DW_FORM_sdata} + {decl_line 1 DW_FORM_sdata} } { DW_TAG_member { {name a} @@ -73,8 +73,8 @@ Dwarf::assemble $asm_file { struct_t_label: DW_TAG_structure_type { {name t} {byte_size 3 DW_FORM_sdata} - {decl_file 1} - {decl_line 1} + {decl_file 1 DW_FORM_sdata} + {decl_line 1 DW_FORM_sdata} } { DW_TAG_member { {name a} @@ -174,7 +174,7 @@ Dwarf::assemble $asm_file { DW_TAG_subprogram { {name foo} - {decl_file 1} + {decl_file 1 sdata} {low_pc foo addr} {high_pc foo_end_lbl addr} } { @@ -219,7 +219,7 @@ Dwarf::assemble $asm_file { DW_TAG_subprogram { {name bar} - {decl_file 1} + {decl_file 1 sdata} {low_pc bar addr} {high_pc bar_end_lbl addr} } { -- cgit v1.1