From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14612 invoked by alias); 29 Oct 2011 17:12:58 -0000 Received: (qmail 14602 invoked by uid 22791); 29 Oct 2011 17:12:57 -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 mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 29 Oct 2011 17:12:40 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LTU003007RHNB00@a-mtaout21.012.net.il> for gdb@sourceware.org; Sat, 29 Oct 2011 19:12:39 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.124.128.216]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LTU0031A7T0MH30@a-mtaout21.012.net.il> for gdb@sourceware.org; Sat, 29 Oct 2011 19:12:37 +0200 (IST) Date: Sat, 29 Oct 2011 17:47:00 -0000 From: Eli Zaretskii Subject: Specify frame by address To: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83k47n90xn.fsf@gnu.org> 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/msg00216.txt.bz2 Both the doc string of the "frame" command and the manual say that it accepts frame specification by address: (gdb) help frame Select and print a stack frame. With no argument, print the selected stack frame. (See also "info frame"). An argument specifies the frame to select. It can be a stack frame number or the address of the frame. <<<<<<<<<< With argument, nothing is printed if input is coming from a command file or a user-defined command. But what is "the address of the frame"? I thought that using an address of a function (the one shown by "info address") or some address shown by the "backtrace" command would do, but none of them seems to work. What am I missing? The context of this is that I would like to write a command that automatically goes to a frame within a call to a specific function, because that command needs to access variables local to that function. TIA