OSDN Git Service

* 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 db8f96e..a19c0a7 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 79ab095..45ce561 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);