Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: wkf@sinavigator.com
Cc: gdb@sourceware.org
Subject: Re: Step outer function call
Date: Mon, 28 Jan 2008 23:00:00 -0000	[thread overview]
Message-ID: <18334.24144.459641.759430@kahikatea.snap.net.nz> (raw)
In-Reply-To: <479E3744.1050500@sinavigator.com>

 > >> 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


      parent reply	other threads:[~2008-01-28 23:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-28 19:55 William K. Foster
2008-01-28 20:03 ` Marc Khouzam
2008-01-28 20:10 ` Daniel Jacobowitz
2008-01-28 20:13   ` William K. Foster
2008-01-28 20:20     ` Daniel Jacobowitz
2008-01-29  4:19       ` Eli Zaretskii
2008-01-29  6:44         ` Michael Snyder
2008-01-28 22:36     ` Michael Snyder
2008-01-28 23:00     ` Nick Roberts [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=18334.24144.459641.759430@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb@sourceware.org \
    --cc=wkf@sinavigator.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox