NetBSD Problem Report #40197

From yamt@mwd.biglobe.ne.jp  Tue Dec 16 06:42:27 2008
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 094E263BA1C
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 16 Dec 2008 06:42:27 +0000 (UTC)
Message-Id: <20081216064222.917C911702@yamt.dyndns.org>
Date: Tue, 16 Dec 2008 15:42:22 +0900 (JST)
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@gnats.NetBSD.org
Subject: gdb set osabi command can't specify NetBSD ELF
X-Send-Pr-Version: 3.95

>Number:         40197
>Category:       toolchain
>Synopsis:       gdb set osabi command can't specify NetBSD ELF
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    toolchain-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 16 06:45:00 +0000 2008
>Closed-Date:    Fri Oct 06 21:31:12 +0000 2017
>Last-Modified:  Fri Oct 06 21:31:12 +0000 2017
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 5.99.5
>Organization:

>Environment:
	<The following information is extracted from your kernelPlease>

System: NetBSD 5.99.5
Architecture: i386
Machine: i386
>Description:
	see below.

	due to the way do_setshow_command() handles spaces,
	"NetBSD ELF" matches with both of "NetBSD a.out" and "NetBSD ELF".
	afaik, there's no way to specify one of them.
>How-To-Repeat:
	% gdb
	(gdb) set osabi
	Requires an argument. Valid arguments are auto, default, none, SVR4, DJGPP, NetWare, NetBSD a.out, NetBSD ELF.
	(gdb) set osabi NetBSD ELF
	Ambiguous item "NetBSD ELF".
	(gdb) 
>Fix:


>Release-Note:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/40197: gdb set osabi command can't specify NetBSD ELF
Date: Sat, 31 Dec 2011 19:28:08 +0000

 On Tue, Dec 16, 2008 at 06:45:00AM +0000, yamt@mwd.biglobe.ne.jp wrote:
  > 	due to the way do_setshow_command() handles spaces,
  > 	"NetBSD ELF" matches with both of "NetBSD a.out" and "NetBSD ELF".
  > 	afaik, there's no way to specify one of them.
  > >How-To-Repeat:
  > 	% gdb
  > 	(gdb) set osabi
  > 	Requires an argument. Valid arguments are auto, default, none, SVR4, DJGPP, NetWare, NetBSD a.out, NetBSD ELF.
  > 	(gdb) set osabi NetBSD ELF
  > 	Ambiguous item "NetBSD ELF".
  > 	(gdb) 

 This is still broken in current's gdb 7 on amd64, although it's less
 obvious because "NetBSD a.out" isn't one of the choices.

 Plus maybe there's another problem:

 (gdb) set osabi NetBSD ELF
 warning: A handler for the OS ABI "NetBSD ELF" is not built into this configuration
 of GDB.  Attempting to continue with the default i386 settings.
 (gdb) 

 (gdb) set osabi NetBSD fail
 warning: A handler for the OS ABI "NetBSD ELF" is not built into this configuration
 of GDB.  Attempting to continue with the default i386 settings.
 (gdb) 

 I'm not sure to what extent this warning really matters.

 -- 
 David A. Holland
 dholland@netbsd.org

From: Patrick Welche <prlw1@cam.ac.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: toolchain/40197 gdb set osabi command can't specify NetBSD ELF
Date: Fri, 13 Feb 2015 11:45:36 +0000

 c.f. bin/49438 gdb complains it has no handler for OS ABI "NetBSD ELF"

State-Changed-From-To: open->closed
State-Changed-By: kamil@NetBSD.org
State-Changed-When: Fri, 06 Oct 2017 23:31:12 +0200
State-Changed-Why:
"NetBSD ELF" has been renamed to "NetBSD/ELF"

(gdb)  set osabi
Requires an argument. Valid arguments are auto, default, none, NetBSD/ELF, SVR4, DJGPP.
(gdb)  set osabi NetBSD/ELF
(gdb)

rugged$ gdb --version
GNU gdb (GDB) 7.12


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.