mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
36938cabf0
"Unambiguous" is is in particular taking as reference the assembler, which also accepts certain insns - despite them allowing for varying operand size, and hence in principle being ambiguous - without any suffix. For example, from the very beginning of the life of x86-64 I had trouble understanding why a plain and simple RET had to be printed as RETQ. In case someone really used the 16-bit form, RETW disambiguates the two quite fine.
18 lines
914 B
Plaintext
18 lines
914 B
Plaintext
#...
|
|
[a-f0-9]+ <main>:
|
|
[ ]*[a-f0-9]+: 48 83 ec 08 sub \$0x8,%rsp
|
|
[ ]*[a-f0-9]+: [ a-f0-9]+ addr32 call [a-f0-9]+ <foo>
|
|
[ ]*[a-f0-9]+: [ a-f0-9]+ call \*0x[a-f0-9]+\(%rip\) # [a-f0-9]+ <.*>
|
|
[ ]*[a-f0-9]+: [ a-f0-9]+ call \*0x[a-f0-9]+\(%rip\) # [a-f0-9]+ <.*>
|
|
[ ]*[a-f0-9]+: [ a-f0-9]+ (rex mov|mov ) \$0x[a-f0-9]+,%(r|e)ax
|
|
[ ]*[a-f0-9]+: ff d0 call \*%rax
|
|
[ ]*[a-f0-9]+: [ a-f0-9]+ mov 0x[a-f0-9]+\(%rip\),%rcx # [a-f0-9]+ <.*>
|
|
[ ]*[a-f0-9]+: ff d1 call \*%rcx
|
|
[ ]*[a-f0-9]+: [ a-f0-9]+ mov 0x[a-f0-9]+\(%rip\),%rdx # [a-f0-9]+ <.*>
|
|
[ ]*[a-f0-9]+: ff d2 call \*%rdx
|
|
[ ]*[a-f0-9]+: 31 ff xor %edi,%edi
|
|
[ ]*[a-f0-9]+: 48 83 c4 08 add \$0x8,%rsp
|
|
[ ]*[a-f0-9]+: [ a-f0-9]+ jmp [a-f0-9]+ <myexit>
|
|
[ ]*[a-f0-9]+: 90 nop
|
|
#pass
|