diff options
author | Kevin Enderby <enderby@apple.com> | 2016-10-21 18:22:35 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2016-10-21 18:22:35 +0000 |
commit | 41c9c00bf07e979e1fb643312a1490bde0e314f3 (patch) | |
tree | b2f1f58dcdb4b014aa01c9590fa48bef40603314 /llvm/test/tools/llvm-objdump/ARM | |
parent | e3b7ba2ffe2c3d3a8d386bf8adf0f5e0ac0a0559 (diff) | |
download | bcm5719-llvm-41c9c00bf07e979e1fb643312a1490bde0e314f3.tar.gz bcm5719-llvm-41c9c00bf07e979e1fb643312a1490bde0e314f3.zip |
For llvm-objdump for Mach-O files add printing of
the ARM_THREAD_STATE in the same format as
otool-classic(1) on darwin.
Also remove an extra space in printing the initprot to make
the output match otool-classic(1) on darwin.
rdar://28851457
llvm-svn: 284852
Diffstat (limited to 'llvm/test/tools/llvm-objdump/ARM')
-rwxr-xr-x | llvm/test/tools/llvm-objdump/ARM/Inputs/thumb.armv7m | bin | 0 -> 4288 bytes | |||
-rw-r--r-- | llvm/test/tools/llvm-objdump/ARM/macho-private-headers.test | 13 |
2 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/ARM/Inputs/thumb.armv7m b/llvm/test/tools/llvm-objdump/ARM/Inputs/thumb.armv7m Binary files differnew file mode 100755 index 00000000000..785ab997bc4 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/ARM/Inputs/thumb.armv7m diff --git a/llvm/test/tools/llvm-objdump/ARM/macho-private-headers.test b/llvm/test/tools/llvm-objdump/ARM/macho-private-headers.test index 4ab30433c07..53004c72e37 100644 --- a/llvm/test/tools/llvm-objdump/ARM/macho-private-headers.test +++ b/llvm/test/tools/llvm-objdump/ARM/macho-private-headers.test @@ -1,6 +1,8 @@ // RUN: llvm-objdump -p %p/Inputs/hello.obj.macho-arm | FileCheck %s // RUN: llvm-objdump -p %p/Inputs/hello.exe.macho-arm \ // RUN: | FileCheck %s -check-prefix=EXE +// RUN: llvm-objdump -macho -private-headers %p/Inputs/thumb.armv7m \ +// RUN: | FileCheck %s -check-prefix=THREAD CHECK: Mach header CHECK: magic cputype cpusubtype caps filetype ncmds sizeofcmds flags @@ -343,3 +345,14 @@ EXE: cmd LC_DYLIB_CODE_SIGN_DRS EXE: cmdsize 16 EXE: dataoff 49244 EXE: datasize 20 + +THREAD: Load command 6 +THREAD: cmd LC_UNIXTHREAD +THREAD: cmdsize 84 +THREAD: flavor ARM_THREAD_STATE +THREAD: count ARM_THREAD_STATE_COUNT +THREAD: r0 0x00000000 r1 0x00000000 r2 0x00000000 r3 0x00000000 +THREAD: r4 0x00000000 r5 0x00000000 r6 0x00000000 r7 0x00000000 +THREAD: r8 0x00000000 r9 0x00000000 r10 0x00000000 r11 0x00000000 +THREAD: r12 0x00000000 sp 0x00000000 lr 0x00000000 pc 0x00001fff +THREAD: cpsr 0x00000000 |