* bsd-kvm.c: Include "gdbcore.h"
authorNathan J. Williams <nathanw@wasabisystems.com>
Sat, 7 Aug 2004 21:22:41 +0000 (21:22 +0000)
committerNathan J. Williams <nathanw@wasabisystems.com>
Sat, 7 Aug 2004 21:22:41 +0000 (21:22 +0000)
       (bsd_kvm_open): Use get_exec_file() to set 'execfile'.

gdb/ChangeLog
gdb/bsd-kvm.c

index db8f96e6718ae3845d5f8d65245ccd429c131b7b..a19c0a707908a34e7df35f352fbda93420f7fef4 100644 (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.
index 79ab09505f60be6fbf34fc67397132d7e183677d..45ce561951642d72f143fcbca0c698d8ae9e60a3 100644 (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);