From owner-freebsd-questions Wed Oct 4 20:33:51 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id UAA16190 for questions-outgoing; Wed, 4 Oct 1995 20:33:51 -0700 Received: from aslan.cdrom.com (aslan.cdrom.com [192.216.223.142]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id UAA16185 for ; Wed, 4 Oct 1995 20:33:45 -0700 Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by aslan.cdrom.com (8.6.12/8.6.9) with SMTP id UAA14791; Wed, 4 Oct 1995 20:33:01 -0700 Message-Id: <199510050333.UAA14791@aslan.cdrom.com> X-Authentication-Warning: aslan.cdrom.com: Host localhost.cdrom.com didn't use HELO protocol To: raoul@cssc-syd.tansu.com.au (Raoul Golan) cc: gibbs@freefall.freebsd.org (Justin T. Gibbs), freebsd-questions@freebsd.org Subject: Re: gdb problem? libraries, perhaps? (RESOLVED!!!) In-reply-to: Your message of "Thu, 05 Oct 1995 13:15:07 +1000." <199510050315.NAA27004@kiwi.cssc-syd.tansu.com.au> Date: Wed, 04 Oct 1995 20:33:00 -0700 From: "Justin T. Gibbs" Sender: owner-questions@freebsd.org Precedence: bulk >gdb will fork a shell in order to run its test binary. If that >shell is csh, and .cshrc has an "exec blah" line, then gdb is >in trouble. It will be forking "blah" instead of its test >binary. Is all of this clear? None of this will happen with zsh. > >It looks very much like a generic gdb problem which appears >when combined with csh. I just wish that gdb could be more >"user friendly" in giving proper diagnostics or warnings. >FreeBSD is completely innocent of all this! > >I know I can change my default shell rather than having that >exec in my .cshrc - but I had it that way since I didn't expect >it to cause any problems! Actually, your .csrhc is broken. Anything intended only for interactive shells should be inclosed in: if ($?prompt) then ... ... endif This includes your exec of zsh (which in and of itself is just bad form). -- Justin T. Gibbs =========================================== Software Developer - Walnut Creek CDROM FreeBSD: Turning PCs into workstations ===========================================