diff options
| author | Pavel Labath <pavel@labath.sk> | 2019-12-09 18:24:45 +0100 |
|---|---|---|
| committer | Pavel Labath <pavel@labath.sk> | 2019-12-12 11:45:03 +0100 |
| commit | d6d36ae4a052e9fefd2926005a69f6cebfa5832b (patch) | |
| tree | 90f55583febab9b43bc4197fd1e8e006e62a8dc6 /lldb/test/Shell | |
| parent | 75b04c7af9e7c48e0128a602f2edb17272e3bfaa (diff) | |
| download | bcm5719-llvm-d6d36ae4a052e9fefd2926005a69f6cebfa5832b.tar.gz bcm5719-llvm-d6d36ae4a052e9fefd2926005a69f6cebfa5832b.zip | |
[lldb] "See through" atomic types in ClangASTContext
Summary:
This enables us to display the contents of atomic structs. Calling the
removal of _Atomic "desugaring" is not fully correct as it does more
than remove sugar, but it is the right thing to do for most of the
things that we care about. We can change this back once we decide to
support atomic types more comprehensively.
Reviewers: teemperor, shafik
Subscribers: jfb, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D71262
Diffstat (limited to 'lldb/test/Shell')
| -rw-r--r-- | lldb/test/Shell/SymbolFile/DWARF/dwarf5-atomic.s | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-atomic.s b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-atomic.s index 9d25956c0df..79573a01fd4 100644 --- a/lldb/test/Shell/SymbolFile/DWARF/dwarf5-atomic.s +++ b/lldb/test/Shell/SymbolFile/DWARF/dwarf5-atomic.s @@ -4,13 +4,13 @@ # RUN: %lldb %t -o "target variable integer structure" -o exit | FileCheck %s # CHECK: (_Atomic(int)) integer = 14159 -# CHECK: (_Atomic(struct_type)) structure = {} +# CHECK: (_Atomic(struct_type)) structure = (member = 71828) .data integer: .long 14159 structure: - .byte 0 + .long 71828 .section .debug_abbrev,"",@progbits .byte 1 # Abbreviation Code @@ -53,13 +53,24 @@ structure: .byte 0 # EOM(2) .byte 5 # Abbreviation Code .byte 19 # DW_TAG_structure_type - .byte 0 # DW_CHILDREN_no + .byte 1 # DW_CHILDREN_yes .byte 3 # DW_AT_name .byte 8 # DW_FORM_string .byte 11 # DW_AT_byte_size .byte 11 # DW_FORM_data1 .byte 0 # EOM(1) .byte 0 # EOM(2) + .byte 6 # Abbreviation Code + .byte 13 # DW_TAG_member + .byte 0 # DW_CHILDREN_no + .byte 3 # DW_AT_name + .byte 8 # DW_FORM_string + .byte 73 # DW_AT_type + .byte 19 # DW_FORM_ref4 + .byte 56 # DW_AT_data_member_location + .byte 11 # DW_FORM_data1 + .byte 0 # EOM(1) + .byte 0 # EOM(2) .byte 0 # EOM(3) .section .debug_info,"",@progbits @@ -99,6 +110,11 @@ structure: .Lstruct: .byte 5 # Abbrev [5] DW_TAG_structure_type .asciz "struct_type" # DW_AT_name - .byte 0 # DW_AT_byte_size + .byte 4 # DW_AT_byte_size + .byte 6 # Abbrev [6] DW_TAG_member + .asciz "member" # DW_AT_name + .long .Lint # DW_AT_type + .byte 0 # DW_AT_data_member_location + .byte 0 # End Of Children Mark .byte 0 # End Of Children Mark .Ldebug_info_end0: |

