aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2015-01-11 15:45:43 -0800
committerDoug Evans <xdje42@gmail.com>2015-01-11 15:45:43 -0800
commitf2e0d4b4ebd224797385ca22a031d74346b2475a (patch)
treed5d73d05ac3ff3121ac80958e9ed2876574a9f60 /gdb/testsuite/gdb.trace
parent6a3ca067521821b6c2ad9a836104d11e6dd760cb (diff)
downloadgdb-f2e0d4b4ebd224797385ca22a031d74346b2475a.zip
gdb-f2e0d4b4ebd224797385ca22a031d74346b2475a.tar.gz
gdb-f2e0d4b4ebd224797385ca22a031d74346b2475a.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/gdb.trace')
-rw-r--r--gdb/testsuite/gdb.trace/entry-values.exp6
-rw-r--r--gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp12
2 files changed, 9 insertions, 9 deletions
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}
} {