Subject: Re: toolchain/35597: cross-gdb does not grok NetBSD target kcore/kvm
To: None <toolchain-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Jason Thorpe <thorpej@shagadelic.org>
List: netbsd-bugs
Date: 04/17/2007 05:05:07
The following reply was made to PR toolchain/35597; it has been noted by GNATS.
From: Jason Thorpe <thorpej@shagadelic.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: toolchain/35597: cross-gdb does not grok NetBSD target kcore/kvm
Date: Mon, 16 Apr 2007 22:01:31 -0700
The issue is that "target kcore" / "target kvm" depend on the native
libkvm. Because we can't build a cross-targeted libkvm, we can't use
that functionality.
To fix this, gdb would need to be taught about the crash dump format
and how to parse the page tables in the crash dump to do the KVA ->
file offset mapping (basically, replace the dead-kernel functionality
that we get from libkvm), and do so in a cross-safe way.
-- thorpej