From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29851 invoked by alias); 20 Apr 2006 14:27:54 -0000 Received: (qmail 29840 invoked by uid 22791); 20 Apr 2006 14:27:53 -0000 X-Spam-Check-By: sourceware.org Received: from nitzan.inter.net.il (HELO nitzan.inter.net.il) (192.114.186.20) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 20 Apr 2006 14:27:49 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-238-215.inter.net.il [83.130.238.215]) by nitzan.inter.net.il (MOS 3.7.3-GA) with ESMTP id DEB87072 (AUTH halo1); Thu, 20 Apr 2006 17:27:44 +0300 (IDT) Date: Thu, 20 Apr 2006 15:24:00 -0000 Message-Id: From: Eli Zaretskii To: gdb@sourceware.org In-reply-to: <20060420124903.GA11015@nevyn.them.org> (message from Daniel Jacobowitz on Thu, 20 Apr 2006 08:49:04 -0400) Subject: Re: Checking if addess is on stack? Reply-to: Eli Zaretskii References: <200604201426.59360.ghost@cs.msu.su> <200604201548.36899.ghost@cs.msu.su> <20060420124903.GA11015@nevyn.them.org> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00273.txt.bz2 > Date: Thu, 20 Apr 2006 08:49:04 -0400 > From: Daniel Jacobowitz > > 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?