Skip to content

Commit

Permalink
Enabling debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
User Kvasa committed Aug 13, 2013
1 parent 72f98b8 commit b6f80f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 0 additions & 2 deletions Gtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ trace_cache_free (void *arg)

tls_cache_destroyed = 1;
tls_cache = NULL;

Debug(5, "freed cache %p\n", cache);
}

/* Initialise frame tracing for threaded use. */
Expand Down
7 changes: 3 additions & 4 deletions include/libunwind_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#ifdef DEBUG
# define UNW_DEBUG 1
#else
# define UNW_DEBUG 0
# define UNW_DEBUG 1
#endif

#define assert(cond) \
Expand All @@ -60,12 +60,11 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#define abort() panic("")

#if UNW_DEBUG
#define unwi_debug_level UNWI_ARCH_OBJ(debug_level)
extern long unwi_debug_level;
//#define unwi_debug_level UNWI_ARCH_OBJ(debug_level)
//extern long unwi_debug_level;

# define Debug(level,format...) \
do { \
if (unwi_debug_level >= level) \
{ \
int _n = level; \
if (_n > 16) \
Expand Down
2 changes: 1 addition & 1 deletion init.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ mi_init (void)
const char *str = getenv ("UNW_DEBUG_LEVEL");

if (str)
unwi_debug_level = atoi (str);
unwi_debug_level = 16; //atoi (str);

#endif

Expand Down

0 comments on commit b6f80f1

Please sign in to comment.