* top.c (gdb_init): Don't set the current directory here; that's
authorJim Blandy <jimb@codesourcery.com>
Tue, 6 Jan 2009 18:28:04 +0000 (18:28 +0000)
committerJim Blandy <jimb@codesourcery.com>
Tue, 6 Jan 2009 18:28:04 +0000 (18:28 +0000)
already been done in captured_main.

gdb/ChangeLog
gdb/top.c

index e848895fcf7d54f65a7d3529d508b73b3c09e143..59caeab81790c8cdff1dd392f8b7512a09b19582 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-06  Jim Blandy  <jimb@red-bean.com>
+
+       * top.c (gdb_init): Don't set the current directory here; that's
+       already been done in captured_main.
+
 2009-01-06  Sandra Loosemore  <sandra@codesourcery.com>
 
        * ser-tcp.c: Adjust includes.
index 0b40180f898340f952ef363b4e505cd69bbad06f..860c286080791a00b397ef506cf2345c95ff25ed 100644 (file)
--- 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.  */