如果我有类似 bool operator ==(const uint128& x, const uint128& y);我怎样才能让 gdb 反汇编它?

最佳答案

(gdb) p 'operator==(uint128 const&,uint128 const&)'
$1 = {bool (const uint128 &, const uint128 &)} 0x401040 <operator==(uint128 const&, uint128 const&)>
(gdb) disassemble $1
Dump of assembler code for function _ZeqRK7uint128S1_:
0x00401040 <_ZeqRK7uint128S1_+0>:       push   %ebp
... (elided)
0x00401066 <_ZeqRK7uint128S1_+38>:      ret
End of assembler dump.
(gdb)

关于c++ - 如何反汇编 gdb 中的重载运算符?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1434437/

10-11 11:42