This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Checking if addess is on stack?
> Date: Thu, 20 Apr 2006 08:49:04 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> What he wants is not to stop the watchpoint when ptr goes out of scope,
> but when ptr->i goes out of scope - if ptr points to a stack allocated
> variable, in this function or another one.
Sorry, I'm probably too dumb and so am still in the woods--could you
provide an example of such a situation?
Specifically, where is ptr allocated--is it itself on the stack or
somewhere else?