> Hi! Is there any obvious way to know if the addresses that lackey
> outputs (when --trace-mem=yes) are local to a function or global?

If near the stack pointer, then definitely local.
If not near the stack pointer, then probably not local, but
could be indeterminate, especially for local-but-'static' variables.
It's also cumbersome to separate reliably .data+.bss (allocated
by /bin/ld) from dynamically-allocated-at-runtime heap (brk, sbrk, mmap).

-- 

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to