This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Weird x86 Linux/GNU crashes
- From: Joe Buck <Joe dot Buck at synopsys dot com>
- To: mark at codesourcery dot com (Mark Mitchell)
- Cc: Joe dot Buck at synopsys dot COM (Joe Buck),schwab at suse dot de (Andreas Schwab), davem at redhat dot com (David S. Miller),hjl at lucon dot org (hjl at lucon dot org), gcc at gcc dot gnu dot org (gcc at gcc dot gnu dot org)
- Date: Wed, 31 Jul 2002 14:07:59 -0700 (PDT)
- Subject: Re: Weird x86 Linux/GNU crashes
Mark writes:
> If we really need shell functionality in GDB, it would be far better
> to link in the relevant bash code and use it directly.
In the meantime, the best way to cope is to always write
SHELL=/bin/sh gdb ...
or, for csh/tcsh users
env SHELL=/bin/sh gdb ...
When bash is invoked as /bin/sh and it's not a login shell, it won't try
to read any startup files (DO NOT say SHELL=/bin/bash or similar).