This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

[RFA] Quiet a tracepoint notification with gdbserver


Since gdbserver now defines trace_timestamp, we get a notice after
connection.  This is confusing if you're not trying to use
tracepoints.  I suggest the attached patch; OK?

-- 
Daniel Jacobowitz
CodeSourcery

2010-10-08  Daniel Jacobowitz  <dan@codesourcery.com>

	* tracepoint.c (merge_uploaded_trace_state_variables): Only print
	messages if info_verbose.

Index: tracepoint.c
===================================================================
--- tracepoint.c	(revision 301900)
+++ tracepoint.c	(working copy)
@@ -3139,13 +3139,17 @@ merge_uploaded_trace_state_variables (st
     {
       tsv = find_matching_tsv (utsv);
       if (tsv)
-	printf_filtered (_("Assuming trace state variable $%s is same as target's variable %d.\n"),
-			 tsv->name, utsv->number);
+	{
+	  if (info_verbose)
+	    printf_filtered (_("Assuming trace state variable $%s is same as target's variable %d.\n"),
+			     tsv->name, utsv->number);
+	}
       else
 	{
 	  tsv = create_tsv_from_upload (utsv);
-	  printf_filtered (_("Created trace state variable $%s for target's variable %d.\n"),
-			   tsv->name, utsv->number);
+	  if (info_verbose)
+	    printf_filtered (_("Created trace state variable $%s for target's variable %d.\n"),
+			     tsv->name, utsv->number);
 	}
       /* Give precedence to numberings that come from the target.  */
       if (tsv)


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