public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Re: [Gdb] 'intelligent' history in gdb
       [not found] <7CDD7B94357FD5119E800002A537C46E122F3BBA@s5-ccr-r1.ccrs.nrcan.gc.ca>
@ 2005-07-23  3:35 ` Ed Peschko
  0 siblings, 0 replies; only message in thread
From: Ed Peschko @ 2005-07-23  3:35 UTC (permalink / raw)
  To: Dillabaugh, Craig; +Cc: gdb

On Fri, Jul 22, 2005 at 11:30:05AM -0400, Dillabaugh, Craig wrote:
> Hi Ed,
> I can't help with your first request, but there is a feature that might be a
> partial solution to you second problem.  You can create a file that includes
> a set of gdb commands and then use the 'source' command to load these
> commands into your current GDB session.  This wouldn't be automated, but it
> would allow you to create a gdb script for a certain executable that you
> load at the time you run that executable.
> 
> Good luck,
> Craig

Thanks for the pointer, but I'm aware of the source command.. And you have to:

	a) manage multiple files, one per project and keep memory of which
           source file goes with which.
	b) type these commands longhand into a flat file
	c) debug these commands

In short, relying on manual dot files is probably about 100 times less
efficient than doing it automatically. You are essentially making a 
subproject for every single project that you are working on - when these
are a small group of monolithic, larger projects the overhead (one gdbinit 
per project) is fine; it becomes more cumbersome when you have
lots of small, rapidly developed projects, or are debugging one of a hundred
projects provided by other, third parties.


Its not as if what I'm envisioning is without precedent; all the 
shells pretty much have automated history management built into them, and its
really kind of cool to use, say tcsh, and have it slowly grow more intelligent
and responsive as you use it.

Anyways, if you don't mind, I'm going to post this the gdb mailing list 
so it can get further discussion. 

Ed

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-07-23  3:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <7CDD7B94357FD5119E800002A537C46E122F3BBA@s5-ccr-r1.ccrs.nrcan.gc.ca>
2005-07-23  3:35 ` [Gdb] 'intelligent' history in gdb Ed Peschko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).