This is the mail archive of the gdb-patches@sourceware.cygnus.com 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]

Re: GDB needs a --cmdline option


On Mon, May 08, 2000 at 10:48:21AM -0600, Tom Tromey wrote:
> In invisible mode, gdb would connect its stdin, stdout, and stderr
> directly to the inferior, do whatever initialization it needed, and
> then run the program without user interaction.  (The I/O stuff is
> needed because it lets you insert "gdb --invisible" into a pipeline.)

Just as a note, when I was at DG many years ago, the debugger group there added
a feature where a program could invoke the debugger as a child whenever it
wanted to be debugged (usually in the case for long live processes, especially
daemons).  I recall some people adding such a call to AOS/VS's equivalent of a
signal handler, so you could just hit ^C to start up the debugger.

I do like the concept of gdb --invisibile.  For those of us who greatly prefer
the text interface to a gui interface, you probably want the ability for the
gdb control console to be something other than stdin/stdout.

-- 
Michael Meissner, Cygnus Solutions, a Red Hat company.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work:	  meissner@redhat.com		phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org	fax:   +1 978-692-4482

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