gdb:
[deliverable/binutils-gdb.git] / gdb / main.c
index 5d4640b37f25500552666132e0a4f1b7f3cd5602..86607d3241e14b75a806aa7a132c57fcd949e3bf 100644 (file)
@@ -40,6 +40,8 @@
 #include "interps.h"
 #include "main.h"
 
+#include "source.h"
+
 /* If nonzero, display time usage both at startup and for each command.  */
 
 int display_time;
@@ -359,6 +361,12 @@ captured_main (void *data)
 
   get_init_files (&system_gdbinit, &home_gdbinit, &local_gdbinit);
 
+#ifdef RELOC_SRCDIR
+  add_substitute_path_rule (RELOC_SRCDIR,
+                           make_relative_prefix (argv[0], BINDIR,
+                                                 RELOC_SRCDIR));
+#endif
+
   /* There will always be an interpreter.  Either the one passed into
      this captured main, or one specified by the user at start up, or
      the console.  Initialize the interpreter to the one requested by 
This page took 0.025647 seconds and 4 git commands to generate.