From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6457 invoked by alias); 28 Jan 2008 23:00:00 -0000 Received: (qmail 6447 invoked by uid 22791); 28 Jan 2008 22:59:59 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Jan 2008 22:59:34 +0000 Received: from kahikatea.snap.net.nz (43.30.255.123.static.snap.net.nz [123.255.30.43]) by viper.snap.net.nz (Postfix) with ESMTP id 6BFDF3DA3B7; Tue, 29 Jan 2008 11:59:31 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id C5C4D8FC6D; Tue, 29 Jan 2008 11:59:29 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18334.24144.459641.759430@kahikatea.snap.net.nz> Date: Mon, 28 Jan 2008 23:00:00 -0000 To: wkf@sinavigator.com Cc: gdb@sourceware.org Subject: Re: Step outer function call In-Reply-To: <479E3744.1050500@sinavigator.com> References: <479E332C.7080205@sinavigator.com> <20080128200951.GA11321@caradoc.them.org> <479E3744.1050500@sinavigator.com> X-Mailer: VM 7.19 under Emacs 23.0.50.39 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: 2008-01/txt/msg00297.txt.bz2 > >> If not, is this a reasonable feature request for gdb? This is what I use running gdb in Emacs In .gdbinit: define function_step tbreak $arg0 cont end ------------ In .emacs (add-hook 'gdb-mode-hook '(lambda () (gud-def gud-function-step "function_step %e" nil "Step to this function.") (define-key-after gud-tool-bar-map [step-outer] '(menu-item "Step outer" gud-function-step :image (image :type xpm :file "/home/nickrob/emacs/etc/images/jump-to.xpm"))))) ------------ You would have to specify your own icon, of course. Then all you need to do is place the cursor on the function that you want to stop in and click on the relevant toolbar icon. -- Nick http://www.inet.net.nz/~nickrob