[Lldb-commits] [lldb] dfb2266 - [lldb] Make DW_AT_declaration-with-children.s test more realistic
Pavel Labath via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 19 01:34:23 PDT 2020
Author: Pavel Labath
Date: 2020-10-19T10:34:13+02:00
New Revision: dfb22663287602a90ba249a96c9916227430a99e
URL: https://github.com/llvm/llvm-project/commit/dfb22663287602a90ba249a96c9916227430a99e
DIFF: https://github.com/llvm/llvm-project/commit/dfb22663287602a90ba249a96c9916227430a99e.diff
LOG: [lldb] Make DW_AT_declaration-with-children.s test more realistic
(Re)add DW_AT_specification and DW_AT_object_pointer attributes. These
were removed in fa89f641c, as they were bogus due to bad test case
reduction.
Added:
Modified:
lldb/test/Shell/SymbolFile/DWARF/DW_AT_declaration-with-children.s
Removed:
################################################################################
diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_AT_declaration-with-children.s b/lldb/test/Shell/SymbolFile/DWARF/DW_AT_declaration-with-children.s
index 3fdee57b6687..0de018afd1b9 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/DW_AT_declaration-with-children.s
+++ b/lldb/test/Shell/SymbolFile/DWARF/DW_AT_declaration-with-children.s
@@ -147,6 +147,10 @@ c1:
.byte 6 # DW_FORM_data4
.byte 64 # DW_AT_frame_base
.byte 24 # DW_FORM_exprloc
+ .byte 100 # DW_AT_object_pointer
+ .byte 19 # DW_FORM_ref4
+ .byte 71 # DW_AT_specification
+ .byte 19 # DW_FORM_ref4
.byte 0 # EOM(1)
.byte 0 # EOM(2)
.byte 11 # Abbreviation Code
@@ -202,6 +206,7 @@ c1:
.byte 3 # Abbrev [3] DW_TAG_structure_type
.asciz "A" # DW_AT_name
# DW_AT_declaration
+.LA_A:
.byte 4 # Abbrev [4] DW_TAG_subprogram
.asciz "A" # DW_AT_name
# DW_AT_declaration
@@ -218,6 +223,9 @@ c1:
.long .LZN1AC2Ev_end-_ZN1AC2Ev # DW_AT_high_pc
.byte 1 # DW_AT_frame_base
.byte 86
+ .long .Lthis-.Lcu_begin0 # DW_AT_object_pointer
+ .long .LA_A-.Lcu_begin0 # DW_AT_specification
+.Lthis:
.byte 11 # Abbrev [11] DW_TAG_formal_parameter
.byte 2 # DW_AT_location
.byte 145
More information about the lldb-commits
mailing list