diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2021-08-19 13:09:46 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-08-19 17:15:00 +0200 |
| commit | f6c43faab72cc4d24c97287064030de97ab74f4a (patch) | |
| tree | f258f1686881d9e24c38957e9c6ae275ef284b37 /pkg/report/testdata/linux/decompile | |
| parent | e2da378b5ceacf2ee1e23913bb1bc4de502f364a (diff) | |
pkg/report: return more information from opcode decompiler
Let decompiler also parse the exact command name. Perform right trim on
the full output line, as it may contain tabs and spaces at the end.
Introduce an "-update" flag to facilitate mass updating of opcode
decompilation tests after changes to this functionality.
Diffstat (limited to 'pkg/report/testdata/linux/decompile')
| -rw-r--r-- | pkg/report/testdata/linux/decompile/amd64/0.out | 2 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/decompile/amd64/2.out | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/report/testdata/linux/decompile/amd64/0.out b/pkg/report/testdata/linux/decompile/amd64/0.out index 1d50e885d..93f0dda98 100644 --- a/pkg/report/testdata/linux/decompile/amd64/0.out +++ b/pkg/report/testdata/linux/decompile/amd64/0.out @@ -57,7 +57,7 @@ Code disassembly (best guess), 2 bytes skipped: 19: e8 f4 c7 f6 fd callq 0xfdf6c812 1e: e9 e0 fb ff ff jmpq 0xfffffc03 23: e8 4a a8 b0 fd callq 0xfdb0a872 - 28: 0f 0b ud2 <-- trapping instruction + 28: 0f 0b ud2 <-- trapping instruction 2a: e9 97 fb ff ff jmpq 0xfffffbc6 2f: 4c 89 ff mov %r15,%rdi 32: e8 0b c8 f6 fd callq 0xfdf6c842 diff --git a/pkg/report/testdata/linux/decompile/amd64/2.out b/pkg/report/testdata/linux/decompile/amd64/2.out index 87de89e9e..b5c3e5f63 100644 --- a/pkg/report/testdata/linux/decompile/amd64/2.out +++ b/pkg/report/testdata/linux/decompile/amd64/2.out @@ -171,15 +171,15 @@ Code disassembly (best guess): 13: bf 01 00 00 00 mov $0x1,%edi 18: e8 15 2a 09 00 callq 0x92a32 1d: e8 50 84 35 00 callq 0x358472 - 22: fb sti + 22: fb sti 23: 65 8b 05 88 91 bc 7e mov %gs:0x7ebc9188(%rip),%eax # 0x7ebc91b2 2a: 85 c0 test %eax,%eax <-- trapping instruction 2c: 74 58 je 0x86 2e: 5b pop %rbx 2f: 5d pop %rbp - 30: c3 retq + 30: c3 retq 31: 65 8b 05 d6 98 bc 7e mov %gs:0x7ebc98d6(%rip),%eax # 0x7ebc990e 38: 85 c0 test %eax,%eax 3a: 75 a2 jne 0xffffffde - 3c: 0f 0b ud2 + 3c: 0f 0b ud2 3e: eb 9e jmp 0xffffffde |
