From owner-freebsd-current@FreeBSD.ORG Wed Dec 19 00:57:51 2007 Return-Path: Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4726716A419 for ; Wed, 19 Dec 2007 00:57:51 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (VARK.MIT.EDU [18.95.3.179]) by mx1.freebsd.org (Postfix) with ESMTP id 08B1713C43E for ; Wed, 19 Dec 2007 00:57:50 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from VARK.MIT.EDU (localhost [127.0.0.1]) by VARK.MIT.EDU (8.14.2/8.14.1) with ESMTP id lBJ0vORE070596; Tue, 18 Dec 2007 19:57:24 -0500 (EST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.MIT.EDU (8.14.2/8.14.1/Submit) id lBJ0vOOV070595; Tue, 18 Dec 2007 19:57:24 -0500 (EST) (envelope-from das@FreeBSD.ORG) Date: Tue, 18 Dec 2007 19:57:24 -0500 From: David Schultz To: Steve Kargl Message-ID: <20071219005724.GA70497@VARK.MIT.EDU> Mail-Followup-To: Steve Kargl , freebsd-current@FreeBSD.ORG References: <20070413183525.GA34643@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070413183525.GA34643@troutmask.apl.washington.edu> Cc: freebsd-current@FreeBSD.ORG Subject: Re: gdb is broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Dec 2007 00:57:51 -0000 On Fri, Apr 13, 2007, Steve Kargl wrote: > It appears that someone has broken gdb in -current. > > laptop:kargl[250] cat > hello.c > #include > int main(void) { > printf("Hello world!\n"); > return 0; > } > laptop:kargl[251] cc -o z -g hello.c > laptop:kargl[252] ./z > Hello world! > laptop:kargl[253] gdb z > (gdb) run > Starting program: /usr/home/kargl/tmp/z > Terminated > > gdb appears to spwan the csh comamnd below and then just spins. It could be something about your config. (Perhaps you have another program called 'z' on your path?) It works fine for me on i386. das@VARK:~> cc -o z -g hello.c das@VARK:~> gdb z GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd"... (gdb) run Starting program: /usr/home/das/z Hello world! Program exited normally.