Re: gdb doesn't accept input on stdin

[prev] [thread] [next] [lurker] [Date index for 2004/09/21]

From: David King
Subject: Re: gdb doesn't accept input on stdin
Date: 23:49 on 21 Sep 2004
It would (and does for me as a work-around), but then I have to write a 
gdb script instead of specifying it instream, cluttering up my beautiful 
(or not so beautiful, since it's dumping core) code, which I'll later 
forget to clean up and my clients will call with questions like "How come 
double-clicking this .gdb file doesn't work? You broke my computer! It's a 
virus! Aaaahhhh!!!" But all hates-users aside, it's anti-intuitive to have 
to maintain a quick command like that in a separate file. The Right Thing 
to do would be to detect whether input is a terminal, and if not, treat 
stdin as a script and ^D like a "quit"

On Tue, 21 Sep 2004, Aaron J. Grier wrote:

> Date: Tue, 21 Sep 2004 15:05:19 -0700
> From: Aaron J. Grier <agrier@xxxxxxxxx.xxx>
> To: hate@xxxxxxxxxxxxxx.xxx
> Subject: Re: gdb doesn't accept input on stdin
> 
> On Tue, Sep 21, 2004 at 12:57:06PM -0700, David King wrote:
>
>> (gdb) Hangup detected on fd 0; error detected on stdin
>>
>> What kind of moron decided that this was a good idea?
>
> would a gdb script work?  (IE gdb -x /some/script/here.gdb)
>
> sounds like a good segue into libreadline hate...
>
>
There's stuff above here

Generated at 12:01 on 24 Sep 2004 by mariachi 0.52