Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2002 15:42:39 -0700
From:      Mark Peek <mp@FreeBSD.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: gdb breaks world
Message-ID:  <p0511170ab90dd9c647a0@[10.1.1.198]>
In-Reply-To: <20020519145840.A80466@troutmask.apl.washington.edu>
References:  <20020518125604.A72462@troutmask.apl.washington.edu> <20020519023108.GB10039@hades.hell.gr> <20020518201215.A74579@troutmask.apl.washington.edu> <20020519110149.B39336@dragon.nuxi.com> <3CE816DF.81998F03@mindspring.com> <20020519145840.A80466@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
At 2:58 PM -0700 5/19/02, Steve Kargl wrote:
>Finally, since you're quick with the wit, can you tell me
>how to debug the following problem when I can't compile
>the debugger.
>
>kargl[223] cat a.c
>#include <stdlib.h>
>int main(void) {
>    /* This isn't the problem.  The problem is with gdb. */
>    abort();
>}
>kargl[224] !gcc
>gcc -g a.c
>kargl[225] gdb a.out
>GNU gdb 4.18
>Copyright 1998 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-unknown-freebsd"...
>
>Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.


This appears to be due to the switch to gcc-3.1. A bug has been filed 
in gnats on this problem (bin/38236: gdb do not work with gcc-3.1).

For now, the workaround is to use the devel/gdb52 port.

Mark

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p0511170ab90dd9c647a0>