Date: Tue, 18 Dec 2007 19:57:24 -0500 From: David Schultz <das@FreeBSD.ORG> To: Steve Kargl <sgk@troutmask.apl.washington.edu> Cc: freebsd-current@FreeBSD.ORG Subject: Re: gdb is broken Message-ID: <20071219005724.GA70497@VARK.MIT.EDU> In-Reply-To: <20070413183525.GA34643@troutmask.apl.washington.edu> References: <20070413183525.GA34643@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 13, 2007, Steve Kargl wrote: > It appears that someone has broken gdb in -current. > > laptop:kargl[250] cat > hello.c > #include <stdio.h> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071219005724.GA70497>