[PATCH] winedbg: gdb proxy mode: hide printf unless traced

Paul Bolle pebolle at tiscali.nl
Mon Aug 30 06:33:53 CDT 2010


Hide a printf in packet_verbose() unless an appropriate trace level is
set.

Signed-off-by: Paul Bolle <pebolle at tiscali.nl>
---
 programs/winedbg/gdbproxy.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/programs/winedbg/gdbproxy.c b/programs/winedbg/gdbproxy.c
index 4aad6e1..4f12481 100644
--- a/programs/winedbg/gdbproxy.c
+++ b/programs/winedbg/gdbproxy.c
@@ -1077,7 +1077,8 @@ static enum packet_return packet_verbose(struct gdb_context* gdbctx)
     * and then an optional thread ID at the end..
     * *******************************************/
 
-    fprintf(stderr, "trying to process a verbose packet\n");
+    if (gdbctx->trace & GDBPXY_TRC_COMMAND)
+        fprintf(stderr, "trying to process a verbose packet\n");
     /* now check that we've got Cont */
     assert(strncmp(gdbctx->in_packet, "Cont", 4) == 0);
 
-- 
1.7.2.1






More information about the wine-patches mailing list