llvm/test/tools/llvm-objdump/X86/macho-print-thread.test
Kevin Enderby af0e1c5e93 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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292829 91177308-0d34-0410-b5e6-96231b3b80d8
2017-01-23 21:13:29 +00:00

12 lines
543 B
Plaintext

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