From thierry@pompo.net  Fri Aug  8 11:00:03 2003
Return-Path: <thierry@pompo.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id DB97A37B407
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Aug 2003 11:00:03 -0700 (PDT)
Received: from graf.pompo.net (lns-th2-2f-81-56-186-139.adsl.proxad.net [81.56.186.139])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D19FF43FDD
	for <FreeBSD-gnats-submit@freebsd.org>; Fri,  8 Aug 2003 11:00:02 -0700 (PDT)
	(envelope-from thierry@pompo.net)
Received: by graf.pompo.net (Postfix, from userid 1001)
	id 8B9527526; Fri,  8 Aug 2003 19:58:53 +0200 (CEST)
Message-Id: <20030808175853.8B9527526@graf.pompo.net>
Date: Fri,  8 Aug 2003 19:58:53 +0200 (CEST)
From: Thierry Thomas <thierry@pompo.net>
Reply-To: Thierry Thomas <thierry@pompo.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: GDB on FreeBSD 4.8: Deprecated bfd_read.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         55394
>Category:       gnu
>Synopsis:       GDB on FreeBSD 4.8: Deprecated bfd_read.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    marcel
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 08 11:00:31 PDT 2003
>Closed-Date:    Sun Jan 27 02:35:28 UTC 2008
>Last-Modified:  Sun Jan 27 02:35:28 UTC 2008
>Originator:     Thierry Thomas
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
Kabbale Eros
>Environment:
System: FreeBSD graf.pompo.net 4.8-STABLE FreeBSD 4.8-STABLE #0: Sat Aug 2 13:35:08 CEST 2003 thierry@graf.pompo.net:/usr/obj/mntsrc/src/sys/GRAF020727 i386


	
>Description:
	With some programs, gdb displays the following message:

	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"...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

	Same message on 4.8-Release and 4.8-Stable.

>How-To-Repeat:
	For example, download the binary asteru.exe, produced on i386 by the port
	french/aster with debugging symbols from
	<http://pompo.net/FreeBSD/asteru.exe.bz2>
	unzip it, and enter `gdb asteru.exe'.

	Note: MD5 (/tmp/asteru.exe.bz2) = d7ad91ecbf2e339dffb9f62218393b5e

>Fix:
	No idea, but there is no problem with GNU gdb 5.2.1 (FreeBSD) on
	5.1-Release.

>Release-Note:
>Audit-Trail:

From: John E Hein <jhein@timing.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: thierry@pompo.net
Subject: Re: gnu/55394: GDB on FreeBSD 4.8: Deprecated bfd_read.
Date: Thu, 29 Apr 2004 11:46:43 -0600

 I get the same problem on FreeBSD 4.9p5.
 
 I compiled gtar-1.13.25_8 (ports/archivers/gtar as of 2004-04-27), after
 editing Makefiles in the work area to add -g...
 
 % cd work/tar-1.13.25/src
 % gdb
 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".
 (gdb) file tar
 Reading symbols from tar...Deprecated bfd_read called at /usr/pub/jhein/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
 Deprecated bfd_read called at /usr/pub/jhein/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf
 done.

From: John E Hein <jhein@timing.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: thierry@pompo.net
Subject: Re: gnu/55394: GDB on FreeBSD 4.8: Deprecated bfd_read.
Date: Thu, 29 Apr 2004 12:58:22 -0600

 Someone recommended a patch back in Sept, 2002 (4.7 time frame)...
 
 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=403573+0+archive/2002/freebsd-stable/20020929.freebsd-stable
  or
 http://article.gmane.org/gmane.os.freebsd.stable/8062/
Responsible-Changed-From-To: freebsd-bugs->marcel 
Responsible-Changed-By: marcel 
Responsible-Changed-When: Sat Jul 17 01:46:04 GMT 2004 
Responsible-Changed-Why:  
Yet another gdb defect that tells me that gdb 4.x is getting too old. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=55394 
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Jan 27 02:34:57 UTC 2008 
State-Changed-Why:  
Problem apparently no longer exists on currently supported FreeBSD 
systems.  But thanks for the submission. 

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