diff options
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/data-loc.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/data-loc.exp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/data-loc.exp b/gdb/testsuite/gdb.dwarf2/data-loc.exp index 5fde074..de21dff 100644 --- a/gdb/testsuite/gdb.dwarf2/data-loc.exp +++ b/gdb/testsuite/gdb.dwarf2/data-loc.exp @@ -43,6 +43,7 @@ Dwarf::assemble $asm_file { } { declare_labels integer_label array_label array_ptr_label set int_size [get_sizeof "int" 4] + set voidp_size [get_sizeof "void *" 96] integer_label: DW_TAG_base_type { {DW_AT_byte_size $int_size DW_FORM_sdata} @@ -63,16 +64,16 @@ Dwarf::assemble $asm_file { {DW_AT_type :$integer_label} {DW_AT_lower_bound { DW_OP_push_object_address - DW_OP_plus_uconst [get_sizeof "void *" 96] + DW_OP_plus_uconst $voidp_size DW_OP_deref - DW_OP_deref_size [get_sizeof "int" 4] + DW_OP_deref_size $int_size } SPECIAL_expr} {DW_AT_upper_bound { DW_OP_push_object_address - DW_OP_plus_uconst [get_sizeof "void *" 96] + DW_OP_plus_uconst $voidp_size DW_OP_deref - DW_OP_plus_uconst [get_sizeof "int" 4] - DW_OP_deref_size [get_sizeof "int" 4] + DW_OP_plus_uconst $int_size + DW_OP_deref_size $int_size } SPECIAL_expr} } } @@ -226,9 +227,6 @@ gdb_test "print foo.five_tdef" \ gdb_test "ptype foo.five_tdef" \ "type = array \\(2 .. 6\\) of integer" -gdb_test "ptype foo.array_type" \ - "type = array \\(<>\\) of integer" - gdb_test "print foo.five_tdef(2)" \ " = 5" |