From Craig Silverstein: support @file expansion.
authorIan Lance Taylor <iant@google.com>
Mon, 4 Feb 2008 17:26:12 +0000 (17:26 +0000)
committerIan Lance Taylor <iant@google.com>
Mon, 4 Feb 2008 17:26:12 +0000 (17:26 +0000)
gold/main.cc

index a6c98721805a792bf863be7a6184813089901ac7..2f68e06ec5e0cc7d04f80fe380ce3a3e37df7dfa 100644 (file)
@@ -91,7 +91,10 @@ write_debug_script(std::string filename_str,
   FILE* fp = fopen(filename, "w");
   if (fp)
     {
-      fprintf(fp, "[ \"$1\" = debug ] && PREFIX=\"${GDB-/home/build/static/projects/tools/gdb} --annotate=3 --fullname %s --args\" && shift\n", argv_0);
+      fprintf(fp, "[ \"$1\" = debug ]"
+              " && PREFIX=\"${GDB-gdb} --annotate=3 --fullname %s --args\""
+              " && shift\n",
+              argv_0);
       fprintf(fp, "$PREFIX%s $*\n", args);
       fclose(fp);
       chmod(filename, 0755);
@@ -132,6 +135,9 @@ main(int argc, char** argv)
 
   program_name = argv[0];
 
+  // In libiberty; expands @filename to the args in "filename".
+  expandargv(&argc, &argv);
+
   // This is used by write_debug_script(), which wants the unedited argv.
   std::string args = collect_argv(argc, argv);
 
This page took 0.025171 seconds and 4 git commands to generate.