aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 3 insertions, 0 deletions
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 */