(gdb) print variable_name To see the value of a variable in decimal
(gdb) print /x variable_name To see the value of a variable in hex
(gdb) print /c variable_name To see the value of a variable in ASCII
(gdb) print &Label_name To see the address of Label_name
(gdb) print /x &Label_name To see the address of Lable_name in better format
(gdb) x/FMT &Label_name To see the value of variable (useful in case of integers)
(gdb) x/1s &Label_name To see the whole string in single-shot (useful in case of strings)
(gdb) x/1s $register To see the whole string in single-shot located at the address stored in register
(gdb) x/1s 0x080000 i.e address To see the whole string in single-shot at a particular address
(gdb) print /c $eax To see the value in register in ASCII
(gdb) print /d $eax To see the value in register in Decimal
(gdb) print /x $eax To see the value in register in HEX
(gdb) x/FMT Address Address could be something like 0x08.. or ‘&Label_name’