Re: gdb is broken

From: David Schultz <das_at_FreeBSD.ORG>
Date: Tue, 18 Dec 2007 19:57:24 -0500
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.
Received on Tue Dec 18 2007 - 23:57:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:24 UTC