I'm trying to debug some code for a project and I've come up against this line cmpl $0x7,0xc(%rsp)
. What is 0xc(%rsp), and how do I print it?
Asked
Active
Viewed 1.2k times
1

DaedalusUsedPerl
- 772
- 5
- 9
- 25
-
1Take a look: http://stackoverflow.com/q/5455832/1758762 – Leo Chapiro Apr 25 '13 at 10:32
1 Answers
1
What is 0xc(%rsp)
The memory location 12 bytes above current stack pointer. The value at that location is being compared with 7
.
and how do I print it?
(gdb) print $rsp+0xc

Employed Russian
- 199,314
- 34
- 295
- 362