public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] sim: trace: do not enable internal debug by default
@ 2015-06-23 18:30 Mike Frysinger
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger @ 2015-06-23 18:30 UTC (permalink / raw)
  To: gdb-patches

Since --trace-debug is for people hacking on the sim sources rather than
people just using the sim, default it to off.  This matches the behavior
of other debug knobs we have.

Committed.
---
 sim/common/ChangeLog    | 4 ++++
 sim/common/sim-config.h | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 0f0773d..c0ddbca 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,5 +1,9 @@
 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
 
+	* sim-config.h (WITH_TRACE): Define to ~TRACE_debug.
+
+2015-06-23  Mike Frysinger  <vapier@gentoo.org>
+
 	* cgen-trace.c [!__STDC__]: Delete.
 	* sim-trace.h [!__STDC__]: Likewise.
 
diff --git a/sim/common/sim-config.h b/sim/common/sim-config.h
index bf7428c..f4fe076 100644
--- a/sim/common/sim-config.h
+++ b/sim/common/sim-config.h
@@ -487,10 +487,10 @@ extern int current_floating_point;
 #endif
 
 /* Include the tracing code.  Disabling this eliminates all tracing
-   code */
+   code.  Default to all tracing but internal debug.  */
 
 #ifndef WITH_TRACE
-#define WITH_TRACE                      (-1)
+#define WITH_TRACE			(~TRACE_debug)
 #endif
 
 /* Include the profiling code.  Disabling this eliminates all profiling
-- 
2.4.4

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-23 18:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 18:30 [PATCH] sim: trace: do not enable internal debug by default Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).