From: Julian Seward Date: Mon, 2 May 2005 10:39:16 +0000 (+0000) Subject: rm debug printing X-Git-Tag: svn/VALGRIND_3_0_0~725 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96e2bfed39654459b7c3e331c9a3924c6aa244f6;p=thirdparty%2Fvalgrind.git rm debug printing git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3593 --- diff --git a/coregrind/m_stacktrace.c b/coregrind/m_stacktrace.c index d9c76135a1..d5a7f6668a 100644 --- a/coregrind/m_stacktrace.c +++ b/coregrind/m_stacktrace.c @@ -145,7 +145,7 @@ UInt VG_(get_StackTrace) ( ThreadId tid, StackTrace ips, UInt n_ips ) Addr sp = STACK_PTR(tst->arch); Addr stack_highest_word = tst->client_stack_highest_word; -#ifdef __x86__ +#if defined(VGP_x86_linux) /* Nasty little hack to deal with sysinfo syscalls - if libc is using the sysinfo page for syscalls (the TLS version does), then ip will always appear to be in that page when doing a syscall, diff --git a/coregrind/vg_symtab2.c b/coregrind/vg_symtab2.c index 057ebd6a12..3efafe6ed5 100644 --- a/coregrind/vg_symtab2.c +++ b/coregrind/vg_symtab2.c @@ -844,8 +844,11 @@ void canonicaliseCfiSI ( SegInfo* si ) if (here_max > si->cfisi_maxaddr) si->cfisi_maxaddr = here_max; } - VG_(printf)("%d entries, %p .. %p\n", si->cfisi_used, - si->cfisi_minaddr, si->cfisi_maxaddr); + + if (VG_(clo_trace_cfi)) + VG_(printf)("canonicaliseCfiSI: %d entries, %p .. %p\n", + si->cfisi_used, + si->cfisi_minaddr, si->cfisi_maxaddr); /* Sort the cfisi array by base address. */ VG_(ssort)(si->cfisi, si->cfisi_used, sizeof(*si->cfisi), compare_CfiSI);