NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: toolchain/40197: gdb set osabi command can't specify NetBSD ELF



The following reply was made to PR toolchain/40197; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
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@localhost 
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@localhost
 


Home | Main Index | Thread Index | Old Index