In GDB, it is possible to print the value at a register using the info register command like this:
(gdb) info register rax
However, this only prints the value of the register as an unsigned integer.
You can print the value at the address stored in the register as different types using
(gdb) x/<type> $rax
or
(gdb) p/<type> $rax
But is it possible to print the value of the register itself as another type such as a signed integer, a double, or an array of chars?
(I.e. something like info register/s rax or info register/d rax)
Aucun commentaire:
Enregistrer un commentaire