Step outer function call
Nick Roberts
nickrob@snap.net.nz
Mon Jan 28 23:00:00 GMT 2008
> >> 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
More information about the Gdb
mailing list