From vova@express.ru  Sat May 18 01:41:25 2002
Return-Path: <vova@express.ru>
Received: from vbook.express.ru (asplinux.ru [195.133.213.194])
	by hub.freebsd.org (Postfix) with ESMTP
	id C92E737B408; Sat, 18 May 2002 01:41:24 -0700 (PDT)
Received: from vova by vbook.express.ru with local (Exim 3.36 #1)
	id 178zmD-0003sK-00; Sat, 18 May 2002 12:41:21 +0400
Message-Id: <E178zmD-0003sK-00@vbook.express.ru>
Date: Sat, 18 May 2002 12:41:21 +0400
From: Vladimir B.Grebenschikov <vova@sw.ru>
Sender: "Vladimir B. Grebenschikov" <vova@express.ru>
Reply-To: Vladimir B.Grebenschikov <vova@sw.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc: current@freebsd.org
Subject: gdb do not work with gcc-3.1
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         38236
>Category:       bin
>Synopsis:       gdb do not work with gcc-3.1
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    mp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 18 01:50:12 PDT 2002
>Closed-Date:    Sat Jun 29 18:20:12 PDT 2002
>Last-Modified:  Sat Jun 29 18:20:12 PDT 2002
>Originator:     Vladimir B. Grebenschikov
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
SWsoft
>Environment:
System: FreeBSD vbook.express.ru 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Fri May 17 13:42:09 MSD 2002 root@vbook.express.ru:/usr/obj/usr/local/src/sys/VBOOK i386

make world done at May 16.

>Description:

GDB do not work with strange diagnostic:

Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader.


>How-To-Repeat:

vbook:/home/vova/src 164_> cat > aa.c 
#include <stdio.h>

main()
{
  printf("hello world\n");
}

^D
vbook:/home/vova/src 165_> gcc -g aa.c
vbook:/home/vova/src 166_> gdb a.out
GNU gdb 4.18 (FreeBSD)
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.

(gdb) b main
No symbol table is loaded.  Use the "file" command.
(gdb) r
Starting program:
/usr/local/home/vova/src/a.out 
hello world
(no debugging symbols found)...(no debugging symbols found)...
Program exited with code 015.
(gdb) q 

vbook:/home/vova/src 167_> gdb --version
GNU gdb 4.18 (FreeBSD)
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".

vbook:/home/vova/src 168_> gcc --version
gcc (GCC) 3.1 [FreeBSD] 20020509 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


>Fix:

Get GCC before 3.1

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Sat May 18 20:01:28 PDT 2002 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=38236 
State-Changed-From-To: closed->open 
State-Changed-By: keramida 
State-Changed-When: Sat May 18 20:02:36 PDT 2002 
State-Changed-Why:  
Accidentally closed.  Sorry about that :( 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38236 
Responsible-Changed-From-To: freebsd-bugs->mp 
Responsible-Changed-By: mp 
Responsible-Changed-When: Mon May 20 12:09:09 PDT 2002 
Responsible-Changed-Why:  
This one is mine. The work around for now is to install the devel/gdb52 port. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38236 

From: "Georg-W. Koltermann" <Georg.Koltermann@mscsoftware.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: vova@sw.ru
Subject: Re: bin/38236: gdb do not work with gcc-3.1
Date: 22 May 2002 15:20:15 +0200

 I can't get the workaround to work.  When I run gdb52 on my dump, I just
 get:
 
 
     $ gdb52 --symbols=kernel.debug --core=vmc 
     GNU gdb 5.2
     Copyright 2002 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-portbld-freebsd5.0"...
     "/var/crash/vmcore.19" is not a core dump: File format not recognized
     (gdb) 
 
 What am I missing?
 
 --
 Georg.
 
 

From: "Anders Nor Berle" <debolaz@debolaz.com>
To: <freebsd-gnats-submit@FreeBSD.org>
Cc: <vova@sw.ru>
Subject: Re: bin/38236: gdb do not work with gcc-3.1
Date: Mon, 27 May 2002 13:52:08 +0200 (CEST)

 I have the exact same issue with a world and kernel from 26th of May.
 
 
 
State-Changed-From-To: open->analyzed 
State-Changed-By: obrien 
State-Changed-When: Mon May 27 10:50:48 PDT 2002 
State-Changed-Why:  
Use `cc -g -gstabs+' 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38236 
State-Changed-From-To: analyzed->closed 
State-Changed-By: mp 
State-Changed-When: Sat Jun 29 18:18:47 PDT 2002 
State-Changed-Why:  
Fixed with import of gdb-5.2. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=38236 
>Unformatted:
