NetBSD Problem Report #10311
Received: (qmail 12403 invoked from network); 7 Jun 2000 21:19:00 -0000
Message-Id: <200006072117.RAA00487@zorkmid.mit.edu>
Date: Wed, 7 Jun 2000 17:17:34 -0400 (EDT)
From: John Hawkinson <jhawk@mit.edu>
Reply-To: jhawk@mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: 'gdb -k' should just work
X-Send-Pr-Version: 3.95
>Number: 10311
>Category: bin
>Synopsis: 'gdb -k' should just work
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: nathanw
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Jun 07 21:19:00 +0000 2000
>Closed-Date: Mon Mar 29 20:07:19 +0000 2004
>Last-Modified: Mon Mar 29 20:07:19 +0000 2004
>Originator: John Hawkinson
>Release: 1.4.2
>Organization:
MIT
>Environment:
System: NetBSD zorkmid.mit.edu 1.4ZA NetBSD 1.4ZA (ZORKMID-$Revision: 1.13 $) #180: Wed Jun 7 16:31:23 EDT 2000 jhawk@zorkmid.mit.edu:/usr/local/current-src/sys/arch/i386/compile/ZORKMID i386
>Description:
gdb -k netbsd.0 netbsd.0.core should "just work". It's really
silly to have to specify the kernel name with an interactive command
("target kcore").
Really silly means:
1. A pain in the neck. More typing and less convenient.
Also, the vaunted "gdb -k netbsd.11*" doesn't work.
2. Gratuitously different from precedent:
a) Userland.
b) other debuggers (e.g. adb -k)
3. Undocumented (this is covered by bin/8833).
If you think I'm wrong here, could someone please explain why
I'm wrong and why "target kcore" is better?
>How-To-Repeat:
zorkmid% gdb -k
-k: obsolete option. For kernel debugging, start gdb
with just the kernel name as an argument (no core file)
and then use the gdb command `target kcore COREFILE'.
>Fix:
Who's the NetBSD gdb maintainer? ;-)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: fair
State-Changed-When: Wed Jun 4 00:50:07 UTC 2003
State-Changed-Why:
I removed the documentation of gdb -k from options(4) last month,
per PR 19106 because it is a deprecated option; I'd argue that
you should take this up with the FSF and the gdb maintainers,
rather than with us, and I think we can close this PR.
Responsible-Changed-From-To: bin-bug-people->nathanw
Responsible-Changed-By: fair
Responsible-Changed-When: Wed Jun 4 00:50:07 UTC 2003
Responsible-Changed-Why:
Nathan has apparently been cast into gdb purgatory for the nonce.
State-Changed-From-To: feedback->closed
State-Changed-By: fair
State-Changed-When: Mon Mar 29 20:04:35 UTC 2004
State-Changed-Why:
As promised, "gdb -k" now produces:
gdb: unrecognized option `-k'
Use `gdb --help' for a complete list of options.
Thus I declare this problem report moot.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.