Subject: toolchain/36160: Missing target kvm when crossbuilding from i386 to amd64
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <juan@xtrarom.org>
List: netbsd-bugs
Date: 04/17/2007 05:55:00
>Number:         36160
>Category:       toolchain
>Synopsis:       Missing target kvm when crossbuilding from i386 to amd64
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 17 05:55:00 +0000 2007
>Originator:     Juan RP
>Release:        NetBSD 4.99.17
>Organization:
>Environment:
System: NetBSD nocturno 4.99.17 NetBSD 4.99.17 (Nocturno) #19: Mon Apr 16 22:34:09 CEST 2007 juan@nocturno:/home/juan/build/src/obj/sys/arch/amd64/compile/Nocturno amd64
Architecture: x86_64
Machine: amd64
>Description:
	Some weeks ago I installed NetBSD/amd64 with a snapshot
	built with my i386 box and build.sh -m amd64. Today I wanted
	to use gdb's target kvm to analyze a kernel's core, but
	surprise! there's no existence of it.

$ gdb -v
GNU gdb 6.5
Copyright (C) 2006 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 "x86_64--netbsd".
$ 

(gdb) help target
Connect to a target machine or process.
The first argument is the type or protocol of the target machine.
Remaining arguments are interpreted by the target protocol.  For more
information on the arguments for a particular protocol, type
`help target ' followed by the protocol name.

List of target subcommands:

target async -- Use a remote computer via a serial line
target child -- Unix child process (started by the "run" command)
target core -- Use a core file as a target
target exec -- Use an executable file as a target
target extended-async -- Use a remote computer via a serial line
target extended-remote -- Use a remote computer via a serial line
target remote -- Use a remote computer via a serial line

Type "help target" followed by target subcommand name for full documentation.
Command name abbreviations are allowed if unambiguous.
(gdb) 

>How-To-Repeat:
>Fix:
	Yes, please.