Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Quiet a tracepoint notification with gdbserver
@ 2010-10-08 17:41 Daniel Jacobowitz
  2010-10-08 17:49 ` Michael Snyder
  2010-10-08 18:52 ` Stan Shebs
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2010-10-08 17:41 UTC (permalink / raw)
  To: gdb-patches; +Cc: Stan Shebs, Pedro Alves

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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-08 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08 17:41 [RFA] Quiet a tracepoint notification with gdbserver Daniel Jacobowitz
2010-10-08 17:49 ` Michael Snyder
2010-10-08 18:52 ` Stan Shebs
2010-10-08 20:45   ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox