* bsd-kvm.c: Include "gdbcore.h"

(bsd_kvm_open): Use get_exec_file() to set 'execfile'.
This commit is contained in:
Nathan J. Williams 2004-08-07 21:22:41 +00:00
parent 70bd8e24cc
commit 7f245d65f7
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
* bsd-kvm.c: Include "gdbcore.h"
(bsd_kvm_open): Use get_exec_file() to set 'execfile'.
2004-08-07 Andrew Cagney <cagney@gnu.org>
* gdbtypes.c (build_flt, build_complex): New functions.

View File

@ -26,6 +26,7 @@
#include "regcache.h"
#include "target.h"
#include "value.h"
#include "gdbcore.h" /* for get_exec_file */
#include "gdb_assert.h"
#include <fcntl.h>
@ -73,6 +74,7 @@ bsd_kvm_open (char *filename, int from_tty)
}
}
execfile = get_exec_file (0);
temp_kd = kvm_openfiles (execfile, filename, NULL, O_RDONLY, errbuf);
if (temp_kd == NULL)
error ("%s", errbuf);