From 7f245d65f70913f51bfd1cb4f49822801ca6ecc9 Mon Sep 17 00:00:00 2001 From: "Nathan J. Williams" Date: Sat, 7 Aug 2004 21:22:41 +0000 Subject: * bsd-kvm.c: Include "gdbcore.h" (bsd_kvm_open): Use get_exec_file() to set 'execfile'. --- gdb/ChangeLog | 5 +++++ gdb/bsd-kvm.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index db8f96e..a19c0a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-08-07 Nathan J. Williams + + * bsd-kvm.c: Include "gdbcore.h" + (bsd_kvm_open): Use get_exec_file() to set 'execfile'. + 2004-08-07 Andrew Cagney * gdbtypes.c (build_flt, build_complex): New functions. diff --git a/gdb/bsd-kvm.c b/gdb/bsd-kvm.c index 79ab095..45ce561 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 @@ -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); -- cgit v1.1