summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2009-03-21 17:29:24 +0100
committerNeal H. Walfield <neal@gnu.org>2009-03-21 17:29:24 +0100
commit6bef6d3e821dcdd48ec44b5b7bd50a2230e0aadd (patch)
tree34937d4635ed509faa0ccafaf70e8d5763042f39
parentae1635a09cf41f5eee39b415af42fadd87ee847a (diff)
Only enable the debugger support if compiling for the Viengoos proper.
-rw-r--r--libc-parts/profile.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libc-parts/profile.c b/libc-parts/profile.c
index 501159b..d348030 100644
--- a/libc-parts/profile.c
+++ b/libc-parts/profile.c
@@ -61,8 +61,9 @@
# endif
#endif
-#ifndef NPROFILE
-# include "../viengoos/debug.h"
+#ifdef RM_INTERN
+# ifndef NPROFILE
+# include "../viengoos/debug.h"
static void
profile_command (int argc, char *argv[])
@@ -78,6 +79,7 @@ static struct debug_command profile_debug =
.function = profile_command
};
+# endif
#endif
static inline uint64_t
@@ -170,8 +172,10 @@ profile_block (void)
/* New thread. */
#ifdef RM_INTERN
+# ifndef NPROFILE
if (thread_count == 0)
debug_register (&profile_debug);
+# endif
#endif
i = __sync_fetch_and_add (&thread_count, 1);