aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2009-01-06 18:28:04 +0000
committerJim Blandy <jimb@codesourcery.com>2009-01-06 18:28:04 +0000
commitfdb7262ae487eccebfaf84f3a5cbecbdeae2c5c7 (patch)
treeac75da2f1521d50df469682c3adbeaea78ae4da6 /gdb/top.c
parent6fe8fd20937e655bfae73531c796e22a7a277715 (diff)
downloadgdb-fdb7262ae487eccebfaf84f3a5cbecbdeae2c5c7.zip
gdb-fdb7262ae487eccebfaf84f3a5cbecbdeae2c5c7.tar.gz
gdb-fdb7262ae487eccebfaf84f3a5cbecbdeae2c5c7.tar.bz2
* top.c (gdb_init): Don't set the current directory here; that's
already been done in captured_main.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/top.c b/gdb/top.c
index 0b40180..860c286 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -1643,9 +1643,6 @@ gdb_init (char *argv0)
/* Run the init function of each source file */
- getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
- current_directory = gdb_dirbuf;
-
#ifdef __MSDOS__
/* Make sure we return to the original directory upon exit, come
what may, since the OS doesn't do that for us. */