aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Pundir <amit.pundir@linaro.org>2012-04-17 16:27:28 +0530
committerAmit Pundir <amit.pundir@linaro.org>2012-04-17 16:27:28 +0530
commit5fd4f826f86c29557925426829c3f4ae6c805dd9 (patch)
tree5a26f55d72adbf59c50585ca52effcdcdc83be6a
parent78a7eb1c5c8d64d53e8222572ac89b23e71cf291 (diff)
downloadandroid_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.c8
-rw-r--r--CRT.h2
-rw-r--r--ProcessList.c1
-rw-r--r--config.h6
-rw-r--r--debug.h2
5 files changed, 11 insertions, 8 deletions
diff --git a/CRT.c b/CRT.c
index 14af420..da107ba 100644
--- a/CRT.c
+++ b/CRT.c
@@ -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();
}
diff --git a/CRT.h b/CRT.h
index dcc902f..9fc64f8 100644
--- a/CRT.h
+++ b/CRT.h
@@ -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>
diff --git a/config.h b/config.h
index df04ca9..28de95f 100644
--- a/config.h
+++ b/config.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"
diff --git a/debug.h b/debug.h
index 1b89f66..fd73692 100644
--- a/debug.h
+++ b/debug.h
@@ -21,7 +21,9 @@
#else
/* No debugging */
+ #ifndef NDEBUG
#define NDEBUG
+ #endif
#define debug_done() sleep(0)
#endif