all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Automatically modifying the gud-gdb command line
@ 2020-06-23 20:21 Patrick Mahan
  2020-06-23 20:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick Mahan @ 2020-06-23 20:21 UTC (permalink / raw)
  To: help-gnu-emacs

Before wandering off into the bowels of the GUD lisp code, I was wonder if
anyone has ever done what I want (I could not find anything on the Emacs
Wiki site nor via google-fu).

Basically, when I am starting a debug session, I enter the command 'gud-gdb
<ENTER>' which then prompts me with 'Run gud-gdb (like this): gdb
--fullname <image>'.  Now I have code that breaks apart a core dump into
its core file and the image that dumped and creates a gdb init file.  I
then modify the command line that gud-gdb prompted me with by adding '-x
gdbinit' and 'core.XXXX' to that line and starting the debug session.

I would like to automate this process (can I pre-config the command line
used by gud-gdb?) so I can possibly turn this into a simple turnkey
procedure that I can then give to our tech-support guys to do the
preliminary phase 1 analysis.  I like the way emacs presents the output,
especially since they will have sources to dump and it is easier in emacs
to walk up the backtrace display source.

Any pointers would be appreciated.

Thanks,

Patrick


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-24  4:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-23 20:21 Automatically modifying the gud-gdb command line Patrick Mahan
2020-06-23 20:34 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-23 21:25   ` Patrick Mahan
2020-06-23 21:36     ` tomas
2020-06-24  2:26       ` Patrick Mahan
2020-06-24  4:19         ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-06-23 21:43     ` Emanuel Berg via Users list for the GNU Emacs text editor

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.