diff options
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/nonvar-access.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/nonvar-access.exp | 186 |
1 files changed, 93 insertions, 93 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/nonvar-access.exp b/gdb/testsuite/gdb.dwarf2/nonvar-access.exp index 4aef19a..604d7a0 100644 --- a/gdb/testsuite/gdb.dwarf2/nonvar-access.exp +++ b/gdb/testsuite/gdb.dwarf2/nonvar-access.exp @@ -31,165 +31,165 @@ Dwarf::assemble $asm_file { cu {} { compile_unit { - {DW_AT_name $srcfile} + DW_AT_name $srcfile } { declare_labels int_type_label char_type_label \ struct_s_label struct_t_label array_a9_label \ char_ptr_label implicit_a_label stack_b_label int_type_label: base_type { - {name "int"} - {encoding @DW_ATE_signed} - {byte_size 4 DW_FORM_sdata} + DW_AT_name "int" + DW_AT_encoding @DW_ATE_signed + DW_AT_byte_size 4 DW_FORM_sdata } char_type_label: base_type { - {name "char"} - {encoding @DW_ATE_unsigned} - {byte_size 1 DW_FORM_sdata} + DW_AT_name "char" + DW_AT_encoding @DW_ATE_unsigned + DW_AT_byte_size 1 DW_FORM_sdata } char_ptr_label: pointer_type { - {type :$char_type_label} + DW_AT_type :$char_type_label } struct_s_label: structure_type { - {name s} - {byte_size 4 DW_FORM_sdata} + DW_AT_name s + DW_AT_byte_size 4 DW_FORM_sdata } { member { - {name a} - {type :$int_type_label} - {data_member_location 0 DW_FORM_udata} - {bit_size 8 DW_FORM_udata} + DW_AT_name a + DW_AT_type :$int_type_label + DW_AT_data_member_location 0 DW_FORM_udata + DW_AT_bit_size 8 DW_FORM_udata } member { - {name b} - {type :$int_type_label} - {data_bit_offset 8 DW_FORM_udata} - {bit_size 24 DW_FORM_udata} + DW_AT_name b + DW_AT_type :$int_type_label + DW_AT_data_bit_offset 8 DW_FORM_udata + DW_AT_bit_size 24 DW_FORM_udata } } struct_t_label: structure_type { - {name t} - {byte_size 4 DW_FORM_sdata} + DW_AT_name t + DW_AT_byte_size 4 DW_FORM_sdata } { member { - {name a} - {type :$int_type_label} - {data_member_location 0 DW_FORM_udata} - {bit_size 9 DW_FORM_udata} + DW_AT_name a + DW_AT_type :$int_type_label + DW_AT_data_member_location 0 DW_FORM_udata + DW_AT_bit_size 9 DW_FORM_udata } member { - {name b} - {type :$int_type_label} - {data_bit_offset 9 DW_FORM_udata} - {bit_size 23 DW_FORM_udata} + DW_AT_name b + DW_AT_type :$int_type_label + DW_AT_data_bit_offset 9 DW_FORM_udata + DW_AT_bit_size 23 DW_FORM_udata } } array_a9_label: array_type { - {type :$char_type_label} + DW_AT_type :$char_type_label } { subrange_type { - {type :$int_type_label} - {upper_bound 8 DW_FORM_udata} + DW_AT_type :$int_type_label + DW_AT_upper_bound 8 DW_FORM_udata } } DW_TAG_subprogram { - {MACRO_AT_func {main}} - {DW_AT_external 1 flag} + MACRO_AT_func {main} + DW_AT_external 1 flag } { # Simple variable without location. DW_TAG_variable { - {name undef_int} - {type :$int_type_label} + DW_AT_name undef_int + DW_AT_type :$int_type_label } # Struct variable without location. DW_TAG_variable { - {name undef_s} - {type :$struct_s_label} + DW_AT_name undef_s + DW_AT_type :$struct_s_label } # Composite location: byte-aligned pieces. DW_TAG_variable { - {name def_s} - {type :$struct_s_label} - {location { - const1u 0 - stack_value - bit_piece 8 0 - const1s -1 - stack_value - bit_piece 24 0 - } SPECIAL_expr} + DW_AT_name def_s + DW_AT_type :$struct_s_label + DW_AT_location { + DW_OP_const1u 0 + DW_OP_stack_value + DW_OP_bit_piece 8 0 + DW_OP_const1s -1 + DW_OP_stack_value + DW_OP_bit_piece 24 0 + } SPECIAL_expr } # Composite location: non-byte-aligned pieces. DW_TAG_variable { - {name def_t} - {type :$struct_t_label} - {location { - const2s -184 - stack_value - bit_piece 9 0 - const4u 1752286 - stack_value - bit_piece 23 0 - } SPECIAL_expr} + DW_AT_name def_t + DW_AT_type :$struct_t_label + DW_AT_location { + DW_OP_const2s -184 + DW_OP_stack_value + DW_OP_bit_piece 9 0 + DW_OP_const4u 1752286 + DW_OP_stack_value + DW_OP_bit_piece 23 0 + } SPECIAL_expr } # Composite location with some empty pieces. DW_TAG_variable { - {name part_def_a} - {type :$array_a9_label} - {location { - piece 3 - const4u 0xf1927314 - stack_value - piece 4 - piece 2 - } SPECIAL_expr} + DW_AT_name part_def_a + DW_AT_type :$array_a9_label + DW_AT_location { + DW_OP_piece 3 + DW_OP_const4u 0xf1927314 + DW_OP_stack_value + DW_OP_piece 4 + DW_OP_piece 2 + } SPECIAL_expr } # Implicit location: immediate value. DW_TAG_variable { - {name def_implicit_s} - {type :$struct_s_label} - {location { - implicit_value 0x12 0x34 0x56 0x78 - } SPECIAL_expr} + DW_AT_name def_implicit_s + DW_AT_type :$struct_s_label + DW_AT_location { + DW_OP_implicit_value 0x12 0x34 0x56 0x78 + } SPECIAL_expr } # Implicit location: immediate value for whole array, with # excess bytes. implicit_a_label: DW_TAG_variable { - {name def_implicit_a} - {type :$array_a9_label} - {location { - implicit_value 0x1 0x12 0x23 0x34 0x45 \ + DW_AT_name def_implicit_a + DW_AT_type :$array_a9_label + DW_AT_location { + DW_OP_implicit_value 0x1 0x12 0x23 0x34 0x45 \ 0x56 0x67 0x78 0x89 0x9a 0xab - } SPECIAL_expr} + } SPECIAL_expr } # Implicit pointer into immediate value. DW_TAG_variable { - {name implicit_a_ptr} - {type :$char_ptr_label} - {location { - implicit_pointer $implicit_a_label 5 - } SPECIAL_expr} + DW_AT_name implicit_a_ptr + DW_AT_type :$char_ptr_label + DW_AT_location { + DW_OP_implicit_pointer $implicit_a_label 5 + } SPECIAL_expr } # Stack-value location. stack_b_label: DW_TAG_variable { - {name def_stack_b} - {type :$struct_t_label} - {location { - const4u 0x1a2b3c4d - stack_value - } SPECIAL_expr} + DW_AT_name def_stack_b + DW_AT_type :$struct_t_label + DW_AT_location { + DW_OP_const4u 0x1a2b3c4d + DW_OP_stack_value + } SPECIAL_expr } # Implicit pointer into stack value. DW_TAG_variable { - {name implicit_b_ptr} - {type :$char_ptr_label} - {location { - implicit_pointer $stack_b_label 1 - } SPECIAL_expr} + DW_AT_name implicit_b_ptr + DW_AT_type :$char_ptr_label + DW_AT_location { + DW_OP_implicit_pointer $stack_b_label 1 + } SPECIAL_expr } } } @@ -201,7 +201,7 @@ if { [prepare_for_testing "failed to prepare" ${testfile} \ return -1 } -if ![runto_main] { +if {![runto_main]} { return -1 } |