This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold patch] Incremental 23/25: Print old and new command lines when different


This is a trivial little patch, but I've found it very useful. With
--debug=incremental, it will print the old and new command lines if
they differ.

-cary


2011-05-01 Cary Coutant  <ccoutant@google.com>

	* incremental.cc (Sized_incremental_binary::do_check_inputs): Add
	debug output when command lines differ.


diff --git a/gold/incremental.cc b/gold/incremental.cc
index db28c76..5e219bf 100644
--- a/gold/incremental.cc
+++ b/gold/incremental.cc
@@ -393,6 +393,12 @@ Sized_incremental_binary<size,
big_endian>::do_check_inputs(

   if (incremental_inputs->command_line() != inputs.command_line())
     {
+      gold_debug(DEBUG_INCREMENTAL,
+      		 "old command line: %s",
+      		 inputs.command_line());
+      gold_debug(DEBUG_INCREMENTAL,
+      		 "new command line: %s",
+      		 incremental_inputs->command_line().c_str());
       explain_no_incremental(_("command line changed"));
       return false;
     }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]