How do you parse an overloaded statement in gdb?

If I have something like bool operator == (const uint128 & x, const uint128 & y); how can i get gdb to parse it?

+3
source share
1 answer
(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) 
+7
source

Source: https://habr.com/ru/post/1717860/


All Articles