[committed] Fix inter-CU references using intra-CU form in imported-unit
Tom de Vries
tdevries@suse.de
Sun Dec 8 10:29:00 GMT 2019
[ was: Re: [PATCH 2/2] Test case for BZ 25065 ]
On 14-10-2019 02:18, Kevin Buettner wrote:
> + cu {} {
> + compile_unit {
> + {language @DW_LANG_C_plus_plus}
> + {name "<artificial>"}
> + } {
> + imported_unit {
> + {import :$cu_label ref_addr}
> + }
> + subprogram {
> + {abstract_origin :$main_label}
> + {low_pc $main_start addr}
> + {high_pc "$main_start + $main_length" addr}
> + } {
> + subprogram {
> + {abstract_origin :$doit_label}
> + {low_pc $doit_start addr}
> + {high_pc "$doit_start + $doit_length" addr}
> + } {
> + formal_parameter {
> + {abstract_origin :$doit_self_label}
> + }
> + }
> + DW_TAG_variable {
> + {abstract_origin :$foo_label}
> + {location 4 data1}
> + }
> + }
> + }
> + }
> +
> + cu {} {
> + cu_label: compile_unit {
> + {language @DW_LANG_C_plus_plus}
> + {name "imported_unit.c"}
> + } {
> + int_label: base_type {
> + {byte_size $int_size sdata}
> + {encoding @DW_ATE_signed}
> + {name int}
> + }
> +
> + main_label: subprogram {
> + {name main}
> + {type :$int_label}
> + {external 1 flag}
> + } {
> + Foo_label: class_type {
> + {name Foo}
> + {byte_size 1 sdata}
> + } {
> + doit_label: subprogram {
> + {name doit}
> + {type :$int_label}
> + {accessibility 1 DW_FORM_data1}
> + } {
> + doit_self_label: formal_parameter {
> + {name this}
> + {artificial 1 DW_FORM_flag_present}
> + {type :$Foo_pointer_type}
> + }
> + }
> + Foo_pointer_type: pointer_type {
> + {byte_size $addr_size sdata}
> + {type :$Foo_label}
> + }
> + }
> + foo_label: DW_TAG_variable {
> + {name foo}
> + {type :$Foo_label}
> + }
> + }
> + }
> + }
> +}
Hi,
I've committed the test-case fix attached below.
Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-inter-CU-references-using-intra-CU-form-in-imported-unit.patch
Type: text/x-patch
Size: 2703 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20191208/fcd3846a/attachment.bin>
More information about the Gdb-patches
mailing list