From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21901 invoked by alias); 29 Oct 2011 18:03:03 -0000 Received: (qmail 21837 invoked by uid 22791); 29 Oct 2011 18:03:01 -0000 X-SWARE-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 29 Oct 2011 18:02:47 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LTU00C009ZEGG00@a-mtaout22.012.net.il> for gdb@sourceware.org; Sat, 29 Oct 2011 20:02:45 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.128.216]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTU00BHGA4IW590@a-mtaout22.012.net.il>; Sat, 29 Oct 2011 20:02:43 +0200 (IST) Date: Sat, 29 Oct 2011 18:04:00 -0000 From: Eli Zaretskii Subject: Re: Specify frame by address In-reply-to: <20111029174638.GA27749@host1.jankratochvil.net> To: Jan Kratochvil Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83ipn78ym5.fsf@gnu.org> References: <83k47n90xn.fsf@gnu.org> <20111029174638.GA27749@host1.jankratochvil.net> X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00218.txt.bz2 > Date: Sat, 29 Oct 2011 19:46:38 +0200 > From: Jan Kratochvil > Cc: gdb@sourceware.org > > "address of the frame" is frame_id.stack_addr. For DWARF it is CFA > (dwarf2_frame_cfa), which is for most arches just unwound SP (not PC!), that > is SP as shown by GDB in the caller. Thanks. What is it for stabs? More generally, suppose I wanted to make the manual more clear on this matter, what could I tell the user about how to find out this address? > Such command really needs to iterate the frames and compare PC there. Right. I hoped that I could reference the frame by the PC address.