|
From: Felix S. <fel...@we...> - 2008-12-01 12:48:59
|
Let me summarise: If a address range is in bounds of the corresponding stack of the current thread, i can come from a stack address. Contratiwise it's a heap address? -----Ursprüngliche Nachricht----- > Von: "Bart Van Assche" <bar...@gm...> > Gesendet: 01.12.08 13:39:16 > An: "Felix Schmidt" <fel...@we...> > CC: val...@li... > Betreff: Re: [Valgrind-developers] stack and heap address > On Mon, Dec 1, 2008 at 1:23 PM, Felix Schmidt <fel...@we...> wrote: > > Is there any possibility to call the framework? > > Or can you explain me, how can I use the /proc/<pid>/maps files to differ a stack and a > > heap address > > Ah, you need this information inside a Valgrind tool ? In that case, > you probably need one or more of the following functions: > > VG_(thread_stack_reset_iter)(...) > VG_(thread_stack_next)(...) > VG_(thread_get_stack_max)(...) > VG_(thread_get_stack_size)(...) > > See also pub_tool_threadstate.h and pub_tool_machine.h. > > Bart. > |