It looks like you are working with 64-bit code, in which case you just need to, for example:
(gdb) p $rbp-0x4 $1 = (void *) 0x7fff5fbff71c
If you want to see what is actually at this address, you need to specify a void * address, for example.
(gdb) p /x *(int *)($rbp-0x4) $2 = 0x7fff
or, more succinctly, use x instead of p , for example
(gdb) x /w $rbp-0x4 0x7fff5fbff71c: 0x00007fff
Paul r
source share