aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorThomas Lord <lord@cygnus>1994-06-15 08:04:44 +0000
committerThomas Lord <lord@cygnus>1994-06-15 08:04:44 +0000
commitf36b58b10ca1535674626653f5c795fb3236b255 (patch)
tree7c0a68c2bd79c663607513eab9f2ad911df02d6a /gdb
parentc96386c4d8bd690856b5742cd783492e8ec9e806 (diff)
downloadgdb-f36b58b10ca1535674626653f5c795fb3236b255.zip
gdb-f36b58b10ca1535674626653f5c795fb3236b255.tar.gz
gdb-f36b58b10ca1535674626653f5c795fb3236b255.tar.bz2
Init current_directory.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/top.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 50bfa3c..ac1658a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/top.c b/gdb/top.c
index 29c2292..1fe7549 100644
--- 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 */