Finding the offset to return with gdb