From cagney@tpgi.com.au  Thu Jul  6 01:57:58 2000
Return-Path: <cagney@tpgi.com.au>
Received: from andrew1.lnk.telstra.net (andrew1.lnk.telstra.net [139.130.51.121])
	by hub.freebsd.org (Postfix) with ESMTP id C00EC37B7B1
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  6 Jul 2000 01:57:54 -0700 (PDT)
	(envelope-from cagney@tpgi.com.au)
Received: (from cagney@localhost)
	by andrew1.lnk.telstra.net (8.9.3/8.9.3) id SAA98102;
	Thu, 6 Jul 2000 18:58:14 +1000 (EST)
	(envelope-from cagney)
Message-Id: <200007060858.SAA98102@andrew1.lnk.telstra.net>
Date: Thu, 6 Jul 2000 18:58:14 +1000 (EST)
From: Andrew Cagney <cagney@tpgi.com.au>
Reply-To: cagney@tpgi.com.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: GDB 4.18 is not GDB 4.18
X-Send-Pr-Version: 3.2

>Number:         19733
>Category:       gnu
>Synopsis:       GDB 4.18 is not GDB 4.18
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 06 02:00:03 PDT 2000
>Closed-Date:    Tue May 14 14:23:14 PDT 2002
>Last-Modified:  Tue May 14 14:23:14 PDT 2002
>Originator:     Andrew Cagney
>Release:        FreeBSD 3.4-RELEASE i386
>Organization:
>Environment:

FreeBSD b1.cygnus.com 3.4-RELEASE FreeBSD 3.4-RELEASE #0: Fri Jun  2 20:32:49 EST 2000     root@b1.cygnus.com:/usr/src/sys/compile/B2pcm  i386


>Description:

The GDB distributed with FreeBSD 3.4 (I suspect as do future and past
versions) prints the version information:

cagney@b1.cygnus.com$ which gdb
/usr/bin/gdb
cagney@b1.cygnus.com$ gdb
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".

Unfortunatly, that can't be correct.  GDB 4.18 doesn't even build on
FreeBSD 3.4 :-)

>How-To-Repeat:

Run GDB..

>Fix:
	
Can you please update the GDB version information in your GDB distro
so that it clearly and correctly identifies the program's heritage.  I
don't care what, just as long as it is clear to the user that the GDB
program isn't an off the shelf 4.18.  (Hmm, actually I do care a
little, please don't choose something like 4.18.1! :-).

	enjoy,
		Andrew

Andrew Cagney
GDB Maintainer

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dfr 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Thu Jul 6 04:15:35 PDT 2000 
Responsible-Changed-Why:  
I _think_ Doug is the right person to handle this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19733 
Responsible-Changed-From-To: dfr->obrien 
Responsible-Changed-By: obrien 
Responsible-Changed-When: Mon Jul 10 02:37:22 PDT 2000 
Responsible-Changed-Why:  
This is probably more for me. 

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

From: "David O'Brien" <obrien@NUXI.com>
To: freebsd-gnats-submit@FreeBSD.org, cagney@tpgi.com.au
Cc:  
Subject: Re: gnu/19733: GDB 4.18 is not GDB 4.18
Date: Mon, 10 Jul 2000 02:42:10 -0700 (PDT)

 >Unfortunatly, that can't be correct.  GDB 4.18 doesn't even build on
 >FreeBSD 3.4 :-)
 
 It does with some configureation tweaks.
 
 >Can you please update the GDB version information in your GDB distro
 >so that it clearly and correctly identifies the program's heritage.
 
 "GNU gdb 4.18" does not do this?
 
 >I don't care what, just as long as it is clear to the user that the GDB
 >program isn't an off the shelf 4.18.  (Hmm, actually I do care a little,
 >please don't choose something like 4.18.1! :-).
 
 Why is this such an issue?
 

From: Andrew Cagney <ac131313@cygnus.com>
To: "David O'Brien" <obrien@NUXI.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: gnu/19733: GDB 4.18 is not GDB 4.18
Date: Tue, 11 Jul 2000 02:25:57 +1000

 David O'Brien wrote:
 
 > >Can you please update the GDB version information in your GDB distro
 > >so that it clearly and correctly identifies the program's heritage.
 > 
 > "GNU gdb 4.18" does not do this?
 
 It is GDB 4.18 + some configuration tweeks.
 
 > >I don't care what, just as long as it is clear to the user that the GDB
 > >program isn't an off the shelf 4.18.  (Hmm, actually I do care a little,
 > >please don't choose something like 4.18.1! :-).
 > 
 > Why is this such an issue?
 
 It isn't so much an ``issue'' as common sense :-).  Anyone doing a
 patched GDB distro really should identify it as such. Otherwize no one
 (least of all the person doing the distro) will know if a customers bug
 is against that custom GDB distro, the GDB trunk, or even someone elses
 custom GDB distro.  Just imagine, for a moment, what would happen if
 everyone decided to do their own custom OS distribution and each one
 contained a GDB with a slightly different set of patches ... ;-)
 
 	Enjoy,
 		Andrew
 
Responsible-Changed-From-To: obrien->mp 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Jan 30 05:33:52 PST 2002 
Responsible-Changed-Why:  
As stated in the audit trails of various other PRs, orbien is not 
the gdb maintainer.  Mark Peek is. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19733 

From: Sheldon Hearn <sheldonh@starjuice.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: gnu/19733: GDB 4.18 is not GDB 4.18
Date: Wed, 30 Jan 2002 15:42:06 +0200

 Given that the GDB distribution maintainer asked us a year and a half
 ago to change the version string in the binary we redistribute, we
 really should have done it by now.
 
 Mark, if Andrew's happy with this patch, please apply it so we can
 forget about this.
 
 Thanks,
 Sheldon.
 
 Index: alpha/version.c
 ===================================================================
 RCS file: /home/ncvs/src/gnu/usr.bin/binutils/gdb/alpha/version.c,v
 retrieving revision 1.1
 diff -u -d -r1.1 version.c
 --- alpha/version.c	2 May 1999 11:32:05 -0000	1.1
 +++ alpha/version.c	30 Jan 2002 13:35:33 -0000
 @@ -1,3 +1,3 @@
 -char *version = "4.18";
 +char *version = "4.18 (FreeBSD)";
  char *host_name = "alpha-unknown-freebsd";
  char *target_name = "alpha-unknown-freebsd";
 Index: i386/version.c
 ===================================================================
 RCS file: /home/ncvs/src/gnu/usr.bin/binutils/gdb/i386/version.c,v
 retrieving revision 1.4
 diff -u -d -r1.4 version.c
 --- i386/version.c	2 May 1999 11:32:14 -0000	1.4
 +++ i386/version.c	30 Jan 2002 13:35:43 -0000
 @@ -1,3 +1,3 @@
 -char *version = "4.18";
 +char *version = "4.18 (FreeBSD)";
  char *host_name = "i386-unknown-freebsd";
  char *target_name = "i386-unknown-freebsd";
State-Changed-From-To: open->closed 
State-Changed-By: mp 
State-Changed-When: Tue May 14 14:22:01 PDT 2002 
State-Changed-Why:  
Change applied to both -current and -stable (for release with 4.6). Thanks. 

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