blob: 76c335f65a76a2b3f373f0edd75d07c4d7de6d2c (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
 | RUN: %lldb -b %p/Inputs/section-overflow-binary \
RUN:   -o 'script dwarf = lldb.target.module[0].sections[0]' \
RUN:   -o 'script section = dwarf.GetSubSectionAtIndex(0)' \
RUN:   -o "script print(f'{section.GetName()} file_offset=0x{section.GetFileOffset():016x}')" \
RUN:   -o 'script section = dwarf.GetSubSectionAtIndex(1)' \
RUN:   -o "script print(f'{section.GetName()} file_offset=0x{section.GetFileOffset():016x}')" \
RUN:   -o 'script section = dwarf.GetSubSectionAtIndex(2)' \
RUN:   -o "script print(f'{section.GetName()} file_offset=0x{section.GetFileOffset():016x}')" \
RUN:   | FileCheck %s
CHECK: __debug_abbrev file_offset=0x00000000fffffff0
CHECK: __debug_info file_offset=0x0000000100000010
CHECK: __debug_line file_offset=0x0000000300000010
 |