summaryrefslogtreecommitdiff
path: root/gdb/bsd-kvm.c
diff options
context:
space:
mode:
authorNathan J. Williams <nathanw@wasabisystems.com>2004-08-07 21:22:41 +0000
committerNathan J. Williams <nathanw@wasabisystems.com>2004-08-07 21:22:41 +0000
commit7f245d65f70913f51bfd1cb4f49822801ca6ecc9 (patch)
tree9e9606be98dc0fa2830b1d68e0a4000843da1c9f /gdb/bsd-kvm.c
parent70bd8e24cc5c2a4e6a17606fea19dd7e05bd4a22 (diff)
downloadbinutils-gdb-7f245d65f70913f51bfd1cb4f49822801ca6ecc9.tar.gz
* bsd-kvm.c: Include "gdbcore.h"
(bsd_kvm_open): Use get_exec_file() to set 'execfile'.
Diffstat (limited to 'gdb/bsd-kvm.c')
-rw-r--r--gdb/bsd-kvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c
index 79ab09505f6..45ce5619516 100644
--- a/gdb/bsd-kvm.c
+++ b/gdb/bsd-kvm.c
@@ -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);