gdbでオーバーロードされた演算子をどのように分解しますか?

StackOverflow https://stackoverflow.com/questions/1434437

  •  07-07-2019
  •  | 
  •  

質問

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) 
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top