This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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: Weird x86 Linux/GNU crashes


Joe Buck <Joe.Buck@synopsys.com> writes:

|> David Miller writes:
|> > GDB exec's a shell to setup your environment properly then execute the
|> > program to be debugged.  In this way GDB's environemnt doesn't need
|> > to be altered among other things.
|> 
|> This "feature" of gdb has caused me nothing but pain over the years; no
|> other program thinks it needs to "setup your environment properly" rather
|> than just use the environment as is.

It has nothing to do with setting up the environment, but without the
shell you would not be able to specify redirections on the command line.
Every other program that supports shelling out does it the same way.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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