Thread (8 messages) 8 messages, 4 authors, 2012-12-12

Find out function arguments value from stack pointer

From: Fabio Pozzi <hidden>
Date: 2012-12-12 11:08:15

When i call  print values at offsets starting from
__builtin_frame_address (0) the function arguments start from offset
2. How can I confirm that this behavior is always consistent.
Arguments are pushed on the stack before the saved frame pointer, thus
you have to add an offset equal to the frame pointer address size if
you start from the beginning of the saved frame pointer record on the
stack.


-- 
Saluti,
Fabio Pozzi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help