diff options
Diffstat (limited to 'lldb/lit/Modules')
4 files changed, 76 insertions, 2 deletions
diff --git a/lldb/lit/Modules/Breakpad/Inputs/uuid-matching-mac.syms b/lldb/lit/Modules/Breakpad/Inputs/uuid-matching-mac.syms new file mode 100644 index 00000000000..7da9264de98 --- /dev/null +++ b/lldb/lit/Modules/Breakpad/Inputs/uuid-matching-mac.syms @@ -0,0 +1,2 @@ +MODULE mac x86_64 A0AB76409C3B3A279E521045D84FA2DC0 a.out +FUNC f90 1b 0 main diff --git a/lldb/lit/Modules/Breakpad/Inputs/uuid-matching-mac.yaml b/lldb/lit/Modules/Breakpad/Inputs/uuid-matching-mac.yaml new file mode 100644 index 00000000000..9e1af9c6e90 --- /dev/null +++ b/lldb/lit/Modules/Breakpad/Inputs/uuid-matching-mac.yaml @@ -0,0 +1,59 @@ +--- !mach-o +FileHeader: + magic: 0xFEEDFACF + cputype: 0x01000007 + cpusubtype: 0x80000003 + filetype: 0x00000002 + ncmds: 14 + sizeofcmds: 744 + flags: 0x00200085 + reserved: 0x00000000 +LoadCommands: + - cmd: LC_SEGMENT_64 + cmdsize: 72 + segname: __PAGEZERO + vmaddr: 0 + vmsize: 4294967296 + fileoff: 0 + filesize: 0 + maxprot: 0 + initprot: 0 + nsects: 0 + flags: 0 + - cmd: LC_SEGMENT_64 + cmdsize: 232 + segname: __TEXT + vmaddr: 4294967296 + vmsize: 4096 + fileoff: 0 + filesize: 4096 + maxprot: 7 + initprot: 5 + nsects: 2 + flags: 0 + Sections: + - sectname: __text + segname: __TEXT + addr: 0x0000000100000F90 + size: 27 + offset: 0x00000F90 + align: 4 + reloff: 0x00000000 + nreloc: 0 + flags: 0x80000400 + reserved1: 0x00000000 + reserved2: 0x00000000 + reserved3: 0x00000000 + - cmd: LC_UUID + cmdsize: 24 + uuid: A0AB7640-9C3B-3A27-9E52-1045D84FA2DC + - cmd: LC_BUILD_VERSION + cmdsize: 32 + platform: 1 + minos: 658944 + sdk: 658944 + ntools: 1 + Tools: + - tool: 3 + version: 29491968 +... diff --git a/lldb/lit/Modules/Breakpad/breakpad-identification.test b/lldb/lit/Modules/Breakpad/breakpad-identification.test index 49758b59a1e..3e70345bc7d 100644 --- a/lldb/lit/Modules/Breakpad/breakpad-identification.test +++ b/lldb/lit/Modules/Breakpad/breakpad-identification.test @@ -15,7 +15,7 @@ LINUX: Strata: user MAC: Plugin name: breakpad MAC: Architecture: x86_64--macosx -MAC: UUID: 680E8CD9-8920-1BAA-EACD-6A8C1F16707B +MAC: UUID: D98C0E68-2089-AA1B-EACD-6A8C1F16707B MAC: Executable: false MAC: Stripped: false MAC: Type: debug info @@ -23,7 +23,7 @@ MAC: Strata: user WINDOWS: Plugin name: breakpad WINDOWS: Architecture: i386--windows -WINDOWS: UUID: 5716C9A0-B580-0949-81A1-925EA62165C0-01000000 +WINDOWS: UUID: A0C91657-80B5-4909-81A1-925EA62165C0-00000001 WINDOWS: Executable: false WINDOWS: Stripped: false WINDOWS: Type: debug info diff --git a/lldb/lit/Modules/Breakpad/uuid-matching-mac.test b/lldb/lit/Modules/Breakpad/uuid-matching-mac.test new file mode 100644 index 00000000000..f2dd2e56312 --- /dev/null +++ b/lldb/lit/Modules/Breakpad/uuid-matching-mac.test @@ -0,0 +1,13 @@ +# RUN: yaml2obj %S/Inputs/uuid-matching-mac.yaml -o %T/uuid-matching-mac.out +# RUN: cd %S +# RUN: %lldb %T/uuid-matching-mac.out -s %s -o exit | FileCheck %s + +target symbols add Inputs/uuid-matching-mac.syms +# CHECK-LABEL: target symbols add +# CHECK: symbol file '{{.*}}uuid-matching-mac.syms' has been added to '{{.*}}uuid-matching-mac.out' + +image lookup -n main +# CHECK-LABEL: image lookup +# CHECK: Address: uuid-matching-mac.out[0x0000000100000f90] + + |