dwarf - Getting value of stack pointer while stack unwinding with dwarf2 -


in dwarf2 debugging format, stack unwinding supported of cfi(call frame information) present in .debug_frame section. precisely table keeps rule every register value in previous frame. however, of these rules relies on fact registers saved on stack @ location. not true getting value of stack pointer in previous frame register when there no frame-pointer. in such cases, stack pointer may not saved on stack managed incrementing , decrementing value. however, there no way in dwarf2 (or dwarf format in general) indicate register value expression on current value. so, question is, how can 1 value of stack pointer during stack unwinding dwarf2 debugging format (when no frame-pointer there).

-bv

it seems dwarf3 supports dw_cfa_val_offset such case. so, can used record value of sp in previous frame based on arithmetic expression on current value. possible solution save stack pointer on stack (will work dwarf2). can done @ -o0 optimization level code efficiency not important.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -