summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-13 19:32:17 +0000
committerTom Tromey <tromey@redhat.com>2013-05-13 19:32:17 +0000
commit0b6d485333eaecc80f2ee1c526d00afc34545568 (patch)
tree8739322af39df227cc5d93dcdd96c5a4a62d7cc7 /gdb/testsuite/gdb.dwarf2
parent85d1ecb8e8c205ad9920ec7d9122e1f41a8722e6 (diff)
downloadgdb-0b6d485333eaecc80f2ee1c526d00afc34545568.tar.gz
* gdb.dwarf2/implptrconst.exp: Create a CU with 4 byte address
size and change type sizes to 4 bytes.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/implptrconst.exp8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/implptrconst.exp b/gdb/testsuite/gdb.dwarf2/implptrconst.exp
index 4ce17135036..7eca600d3cd 100644
--- a/gdb/testsuite/gdb.dwarf2/implptrconst.exp
+++ b/gdb/testsuite/gdb.dwarf2/implptrconst.exp
@@ -27,7 +27,9 @@ standard_testfile .c implptrconst-dw.S
# Make some DWARF for the test.
set asm_file [standard_output_file $srcfile2]
Dwarf::assemble $asm_file {
- cu 0 2 8 {
+ # Creating a CU with 4-byte addresses lets this test link on both
+ # 32- and 64-bit machines.
+ cu 0 2 4 {
compile_unit {} {
declare_labels byte_label size_type_label array_label
declare_labels var_label ptr_label
@@ -41,7 +43,7 @@ Dwarf::assemble $asm_file {
size_type_label: base_type {
{name sizetype}
{encoding @DW_ATE_unsigned}
- {byte_size 8 DW_FORM_sdata}
+ {byte_size 4 DW_FORM_sdata}
}
array_label: array_type {
@@ -60,7 +62,7 @@ Dwarf::assemble $asm_file {
}
ptr_label: pointer_type {
- {byte_size 8 DW_FORM_sdata}
+ {byte_size 4 DW_FORM_sdata}
{type :$byte_label}
}