gdb is broken

David Schultz das at FreeBSD.ORG
Tue Dec 18 16:57:51 PST 2007


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 at VARK:~> cc -o z -g hello.c
das at 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.


More information about the freebsd-current mailing list