LLDB's DWARF parser didn't support parsing DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt forms which would cause any file loaded by LLDB to fail to parse any DWARF. Added support for parsing this information only, not for actually finding the debug info reference to an alternate file or a string in an alternate file. These extensions are used by DWZ files which are present in some linux distros, so it will be good for LLDB to just be able to parse these without emitting an error like: (lldb) b bar warning: (arm64) /tmp/a.out unsupported DW_FORM values: 0x1f20 0x1f21
13 lines
594 B
Plaintext
13 lines
594 B
Plaintext
# This test verifies that LLDB can read DWARF file that contains DW_FORM values
|
|
# encoded with the DW_FORM_GNU_ref_alt and DW_FORM_GNU_strp_alt. If any file was
|
|
# loaded into LLDB prior to adding support LLDB wouldn't be able to parse any
|
|
# of the DWARF as it wouldn't know how to parse these entries and since DWARF is
|
|
# a stream, nothing after that could be parsed.
|
|
|
|
# RUN: yaml2obj %S/Inputs/gnu-ref-strp-alt.yaml > %t
|
|
# RUN: %lldb %t -b -o 'b bar' | FileCheck %s
|
|
|
|
# CHECK: (lldb) b bar
|
|
# CHECK-NOT: unsupported DW_FORM values:
|
|
# CHECK: Breakpoint 1: address = 0x0000000000001000
|