This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Step outer function call


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]