Skip to contentSkip to conversation

[5685] Disable debug code for production.

Qemu-devel Aurelien Jarno 2 participants 3 messages Nov 11, 2008 – Nov 12, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 5685

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5685
Author:   aurel32
Date:     2008-11-11 13:30:24 +0000 (Tue, 11 Nov 2008)

Log Message:
-----------
Disable debug code for production.

Modified Paths:
--------------
trunk/exec-all.h

Modified: trunk/exec-all.h
===================================================================

exec-all.h +1 -1
@@ -21,7 +21,7 @@
 #ifndef _EXEC_ALL_H_
 #define _EXEC_ALL_H_
 /* allow to see translation results - the slowdown should be negligible, so we leave it */
-#define DEBUG_DISAS
+//#define DEBUG_DISAS
 
 /* is_jmp field values */
 #define DISAS_NEXT    0 /* next instruction can be analyzed */
#1 lore raw

exec-all.h line 24

Quoted 4 lines

/* allow to see translation results - the slowdown should be negligible,
so we leave it */

exec-all.h +1 -1
-#define DEBUG_DISAS 
+//#define DEBUG_DISAS

Why? As the comment says this has almost no runtime overhead, so there's no real downside to leaving it enabled. After your change the code is inconsistent with the comment.
If we really want to disble this for production builds then IMHO it can be done by whoever spins the release.

Paul

#2 lore raw
Quoted 11 lines · Paul Brook

exec-all.h line 24

Quoted 4 lines

/* allow to see translation results - the slowdown should be negligible,
so we leave it */

exec-all.h +1 -1
-#define DEBUG_DISAS 
+//#define DEBUG_DISAS

Why? As the comment says this has almost no runtime overhead, so there's no real downside to leaving it enabled. After your change the code is inconsistent with the comment.
If we really want to disble this for production builds then IMHO it can be done by whoever spins the release.

This has been committed by mistake, and reverted later.

Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net