This is the mail archive of the insight@sources.redhat.com mailing list for the Insight 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: input redirection


On Fri, 6 Sep 2002 antoine.trux@nokia.com wrote:

> Hi,
> 
> Someone once had problems with input redirection with the Insight Debugger in Windows NT: http://sources.redhat.com/ml/insight/2001-q1/msg00047.html. Several people answered, but the problem remained unsolved (see http://sources.redhat.com/ml/insight/2001-q1/msg00048.html, http://sources.redhat.com/ml/insight/2001-q1/msg00049.html and http://sources.redhat.com/ml/insight/2001-q1/msg00050.html).
> 
> I have the same problem. Has any solution been found?

Tom Tromey responded to this message... You're problem may be different, 
but the original poster was attempting to do something silly:

$ gdb ./mulitvar < multivar.inf

This tells gdb that it's stdin is redirected from the file! Not what the 
user wanted, I think...

Instead, he has several options:

1) Run "gdb ./multivar", go to File->Target Settings..., choose "Exec", 
and enter "< multivar.inf" as arguments

2) Run "gdb ./multivar --args '< multiar.inf' (syntax may be incorrect -- 
double check it)

3) Run "gdb ./mulitvar", open Console Window, type "r < multivar.inf"

If this doesn't happen on your system, please try doing this with vanilla 
gdb, i.e., "gdb -nw". This doesn't sound like the sort of thing that 
Insight would malign.

Keith



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