Init current_directory.
authorThomas Lord <lord@cygnus>
Wed, 15 Jun 1994 08:04:44 +0000 (08:04 +0000)
committerThomas Lord <lord@cygnus>
Wed, 15 Jun 1994 08:04:44 +0000 (08:04 +0000)
gdb/ChangeLog
gdb/top.c

index 50bfa3c70ece2935ea2c5d1532a246e8043a4a31..ac1658a41d262da2fe97e16b882043fb3970010e 100644 (file)
@@ -1,3 +1,9 @@
+Wed Jun 15 00:41:03 1994  Tom Lord  (lord@rtl.cygnus.com)
+
+       * top.c (gdb_init): Init current_directory in gdb_init.  Probably
+       the identical initialization can be deleted from main.c, but i
+       haven't done so just in case.
+
 Tue Jun 14 17:24:41 1994  Tom Lord  (lord@x1.cygnus.com)
 
        * gdba.el: Added menu windows and slightly improved window
index 29c2292451ee044b1b38e8f8d6912ef7b1138750..1fe7549ef50141915f13b4f9237abf806408012e 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -484,6 +484,9 @@ gdb_init ()
 {
   /* Run the init function of each source file */
 
+  getcwd (dirbuf, sizeof (dirbuf));
+  current_directory = dirbuf;
+
   init_cmd_lists ();   /* This needs to be done first */
   initialize_all_files ();
   init_main ();                /* But that omits this file!  Do it now */
This page took 0.027778 seconds and 4 git commands to generate.