diff options
author | Amit Pundir <amit.pundir@linaro.org> | 2012-04-17 16:27:28 +0530 |
---|---|---|
committer | Amit Pundir <amit.pundir@linaro.org> | 2012-04-17 16:27:28 +0530 |
commit | 5fd4f826f86c29557925426829c3f4ae6c805dd9 (patch) | |
tree | 5a26f55d72adbf59c50585ca52effcdcdc83be6a | |
parent | 78a7eb1c5c8d64d53e8222572ac89b23e71cf291 (diff) | |
download | android_external_htop-5fd4f826f86c29557925426829c3f4ae6c805dd9.tar.gz android_external_htop-5fd4f826f86c29557925426829c3f4ae6c805dd9.tar.bz2 android_external_htop-5fd4f826f86c29557925426829c3f4ae6c805dd9.zip |
get rid of backtracing support
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
-rw-r--r-- | CRT.c | 8 | ||||
-rw-r--r-- | CRT.h | 2 | ||||
-rw-r--r-- | ProcessList.c | 1 | ||||
-rw-r--r-- | config.h | 6 | ||||
-rw-r--r-- | debug.h | 2 |
5 files changed, 11 insertions, 8 deletions
@@ -11,7 +11,7 @@ in the source distribution for its full text. #include <signal.h> #include <stdlib.h> #include <stdbool.h> -#include <execinfo.h> +//#include <execinfo.h> #include "String.h" @@ -128,9 +128,9 @@ static void CRT_handleSIGSEGV(int sgn) { #else fprintf(stderr, "\n\nhtop " VERSION " aborting. Unsupported platform.\n"); #endif - size_t size = backtrace(backtraceArray, sizeof(backtraceArray)); - fprintf(stderr, "Backtrace: \n"); - backtrace_symbols_fd(backtraceArray, size, 2); + //size_t size = backtrace(backtraceArray, sizeof(backtraceArray)); + //fprintf(stderr, "Backtrace: \n"); + //backtrace_symbols_fd(backtraceArray, size, 2); abort(); } @@ -14,7 +14,7 @@ in the source distribution for its full text. #include <signal.h> #include <stdlib.h> #include <stdbool.h> -#include <execinfo.h> +//#include <execinfo.h> #include "String.h" diff --git a/ProcessList.c b/ProcessList.c index c234357..e39d414 100644 --- a/ProcessList.c +++ b/ProcessList.c @@ -16,6 +16,7 @@ in the source distribution for its full text. #include "UsersTable.h" #include "Hashtable.h" #include "String.h" +#include "CPUMeter.h" #include <sys/types.h> #include <sys/stat.h> @@ -113,7 +113,7 @@ #define HAVE_UNISTD_H 1 /* Define to 1 if you have the <valgrind/valgrind.h> header file. */ -#define HAVE_VALGRIND_VALGRIND_H 1 +/* #undef HAVE_VALGRIND_VALGRIND_H */ /* Define if vserver support enabled. */ /* #undef HAVE_VSERVER */ @@ -151,7 +151,7 @@ #define PACKAGE_VERSION "0.9" /* Whether we are in debugging more or not */ -#define PLPA_DEBUG 1 +#define PLPA_DEBUG 0 /* The PLPA symbol prefix */ #define PLPA_SYM_PREFIX plpa_ @@ -160,7 +160,7 @@ #define PLPA_SYM_PREFIX_CAPS PLPA_ /* Whether we want Valgrind support or not */ -#define PLPA_WANT_VALGRIND_SUPPORT 1 +#define PLPA_WANT_VALGRIND_SUPPORT 0 /* Path of proc filesystem */ #define PROCDIR "/proc" @@ -21,7 +21,9 @@ #else /* No debugging */ + #ifndef NDEBUG #define NDEBUG + #endif #define debug_done() sleep(0) #endif |