aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
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.dwarf2
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.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/arr-subrange.exp4
-rw-r--r--gdb/testsuite/gdb.dwarf2/corrupt.exp10
-rw-r--r--gdb/testsuite/gdb.dwarf2/enum-type.exp2
3 files changed, 8 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/arr-subrange.exp b/gdb/testsuite/gdb.dwarf2/arr-subrange.exp
index 6aacb27..417ee44 100644
--- a/gdb/testsuite/gdb.dwarf2/arr-subrange.exp
+++ b/gdb/testsuite/gdb.dwarf2/arr-subrange.exp
@@ -29,8 +29,8 @@ Dwarf::assemble $asm_file {
{DW_AT_language @DW_LANG_Ada95}
{DW_AT_name foo.adb}
{DW_AT_comp_dir /tmp}
- {DW_AT_low_pc 0x1000}
- {DW_AT_high_pc 0x2000}
+ {DW_AT_low_pc 0x1000 addr}
+ {DW_AT_high_pc 0x2000 addr}
} {
declare_labels boolean_label typedef_label array_label enum_label
diff --git a/gdb/testsuite/gdb.dwarf2/corrupt.exp b/gdb/testsuite/gdb.dwarf2/corrupt.exp
index a8558be..4e86f4a 100644
--- a/gdb/testsuite/gdb.dwarf2/corrupt.exp
+++ b/gdb/testsuite/gdb.dwarf2/corrupt.exp
@@ -38,25 +38,25 @@ Dwarf::assemble $asm_file {
declare_labels int_label
int_label: base_type {
- {byte_size 4}
+ {byte_size 4 sdata}
{name "int"}
}
enumeration_type {
{name "ENUM"}
- {byte_size 4}
+ {byte_size 4 sdata}
} {
enumerator {
{name "A"}
- {const_value 0}
+ {const_value 0 sdata}
}
enumerator {
{name "B"}
- {const_value 1}
+ {const_value 1 sdata}
{sibling 12345678 DW_FORM_ref4}
} {
base_type {
- {byte_size 1}
+ {byte_size 1 sdata}
{name "char"}
}
}
diff --git a/gdb/testsuite/gdb.dwarf2/enum-type.exp b/gdb/testsuite/gdb.dwarf2/enum-type.exp
index 48a9f0f..351e51f 100644
--- a/gdb/testsuite/gdb.dwarf2/enum-type.exp
+++ b/gdb/testsuite/gdb.dwarf2/enum-type.exp
@@ -50,7 +50,7 @@ Dwarf::assemble $asm_file {
} {
DW_TAG_enumerator {
{DW_AT_name ONE}
- {DW_AT_const_value 1}
+ {DW_AT_const_value 1 DW_FORM_sdata}
}
}