This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] bsd-kvm.c: get exec file name
- From: Mark Kettenis <kettenis at chello dot nl>
- To: nathanw at wasabisystems dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 6 Aug 2004 23:13:19 +0200 (CEST)
- Subject: Re: [RFA] bsd-kvm.c: get exec file name
- References: <mtuvffwb0sr.fsf@contents-vnder-pressvre.mit.edu>
From: "Nathan J. Williams" <nathanw@wasabisystems.com>
Date: 06 Aug 2004 14:04:36 -0400
This changes bsd_kvm_open() to pass the exec file in use to
kvm_openfiles() rather than NULL, which improves results when you run
"gdb /some/other/kernel" "target kvm kernel.core".
2004-08-06 Nathan J. Williams <nathanw@wasabisystems.com>
* bsd-kvm.c: Include "gdbcore.h"
(bsd_kvm_open): Delete variable 'execfile'. Pass return value of
get_exec_file() to kvm_openfiles().
OK to commit?
OK, although I'd prefer to keep using the variable execfile instead of
wrapping the kvm_openfiles call:
execfile = get_exec_file (0);
temp_kd = kvm_openfiles (execfile, filename, NULL, O_RDONLY, errbuf);
Mark