I came across a gdb auto-display feature, which is quite powerful and convenient. After the call
(gdb) display/i $pc (gdb) display $rax
scanned values ββare displayed automatically after each step:
(gdb) si 0x0804805e in print_loop_start () 2: $rax = 0 1: x/i $pc => 0x804805e <print_loop_start+6>: mov 0x4(%ebp,%eax,4),%ecx
But how can I "print" a value in $ rax if it is no longer interested?
source share