diff options
author | Kevin Enderby <enderby@apple.com> | 2017-01-23 21:13:29 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2017-01-23 21:13:29 +0000 |
commit | c3a035d86f91a380bd001eb6ad4cf4faf6bd5e84 (patch) | |
tree | ce9d221635aec359a32197eb6b1cd58d3ade2120 /llvm/test/tools/llvm-objdump | |
parent | b6137063ebda8a99f6b6f7c0c94b1cd3ad1c67d4 (diff) | |
download | bcm5719-llvm-c3a035d86f91a380bd001eb6ad4cf4faf6bd5e84.tar.gz bcm5719-llvm-c3a035d86f91a380bd001eb6ad4cf4faf6bd5e84.zip |
Add support for the x86_thread_state32_t and
in llvm-objdump for Mach-O files add the printing of the
x86_thread_state32_t in the same format as
otool-classic(1) on darwin.
To do this the 32-bit x86 general tread state
needed to be defined in include/llvm/Support/MachO.h .
rdar://30110111
llvm-svn: 292829
Diffstat (limited to 'llvm/test/tools/llvm-objdump')
-rwxr-xr-x | llvm/test/tools/llvm-objdump/X86/Inputs/thread.macho-i386 | bin | 0 -> 9204 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-objdump/X86/macho-print-thread.test | 11 |
2 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/Inputs/thread.macho-i386 b/llvm/test/tools/llvm-objdump/X86/Inputs/thread.macho-i386 Binary files differnew file mode 100755 index 00000000000..f4b805d9b03 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/Inputs/thread.macho-i386 diff --git a/llvm/test/tools/llvm-objdump/X86/macho-print-thread.test b/llvm/test/tools/llvm-objdump/X86/macho-print-thread.test new file mode 100644 index 00000000000..12f71de1db2 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/macho-print-thread.test @@ -0,0 +1,11 @@ +RUN: llvm-objdump -macho -private-headers %p/Inputs/thread.macho-i386 | FileCheck %s + +CHECK: Load command 9 +CHECK: cmd LC_UNIXTHREAD +CHECK: cmdsize 80 +CHECK: flavor i386_THREAD_STATE +CHECK: count i386_THREAD_STATE_COUNT +CHECK: eax 0x00000000 ebx 0x00000000 ecx 0x00000000 edx 0x00000000 +CHECK: edi 0x00000000 esi 0x00000000 ebp 0x00000000 esp 0x00000000 +CHECK: ss 0x00000000 eflags 0x00000000 eip 0x00001db0 cs 0x00000000 +CHECK: ds 0x00000000 es 0x00000000 fs 0x00000000 gs 0x00000000 |