c - How to get the value of the base pointer, stack pointer and saved base pointer -


i know how use gdb , used info frame can't find value of base, stack , saved base pointer. how these? can find them in information info frame gives me or have else?

info reg tell contents of registers, including stack pointer (rsp on 64 bit x86) , base pointer (rbp on 64 bit x86):

(gdb) info reg rax            0x401340 4199232 rbx            0x0  0 rcx            0x0  0 rdx            0x7fffffffe608   140737488348680 rsi            0x7fffffffe5f8   140737488348664 rdi            0x0  0 rbp            0x0  0x0 rsp            0x7fffffffe508   0x7fffffffe508 r8             0x7ffff7dd4e80   140737351863936 r9             0x7ffff7dea560   140737351951712 r10            0x7fffffffe2d0   140737488347856 r11            0x7ffff7a50290   140737348174480 r12            0x4013e2 4199394 r13            0x7fffffffe5f0   140737488348656 r14            0x0  0 r15            0x0  0 rip            0x7ffff7a50290   0x7ffff7a50290 <__gi_exit> eflags         0x202    [ if ] cs             0x33 51 ss             0x2b 43 ds             0x0  0 es             0x0  0 fs             0x0  0 gs             0x0  0 

the remaining info available via info frame:

(gdb) info frame stack level 0, frame @ 0x7fffffffe510:  rip = 0x7ffff7a50290 in __gi_exit (exit.c:104); saved rip = 0x40134d  called frame @ 0x7fffffffe520  source language c.  arglist @ 0x7fffffffe500, args: status=0  locals @ 0x7fffffffe500, previous frame's sp 0x7fffffffe510  saved registers:   rip @ 0x7fffffffe508 

Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

gradle error "Cannot convert the provided notation to a File or URI" -

python - NameError: name 'subprocess' is not defined -