[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 26/35] Call `unw_backtrace()' explicitly in tes
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 26/35] Call `unw_backtrace()' explicitly in test-flush-cache.c |
Date: |
Tue, 18 Sep 2012 16:31:35 +0300 |
---
tests/test-flush-cache.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/tests/test-flush-cache.c b/tests/test-flush-cache.c
index 180b5c2..592162c 100644
--- a/tests/test-flush-cache.c
+++ b/tests/test-flush-cache.c
@@ -25,15 +25,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#if HAVE_EXECINFO_H
-# include <execinfo.h>
-#else
- extern int backtrace (void **, int);
-#endif
#include <stdio.h>
#include <string.h>
@@ -50,7 +41,7 @@ f257 (void)
if (verbose)
printf ("First backtrace:\n");
- n = backtrace (buffer, 300);
+ n = unw_backtrace (buffer, 300);
if (verbose)
for (i = 0; i < n; ++i)
printf ("[%d] ip=%p\n", i, buffer[i]);
@@ -59,7 +50,7 @@ f257 (void)
if (verbose)
printf ("\nSecond backtrace:\n");
- n = backtrace (buffer, 300);
+ n = unw_backtrace (buffer, 300);
if (verbose)
for (i = 0; i < n; ++i)
printf ("[%d] ip=%p\n", i, buffer[i]);
--
1.7.9.5
- Re: [Libunwind-devel] [PATCH 21/35] Drop `optimize' attribute in tests/test-varargs.c, (continued)
[Libunwind-devel] [PATCH 23/35] Remove unneeded `config.h' inclusion in Gtest-nomalloc, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 24/35] Cleanup dynamically allocated memory before exit in tests, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 19/35] Annotate potentially unused variable in tests/Gtest-trace.c, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 18/35] Annotate potentially unused variable in tests/Gtest-bt.c, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 29/35] Nuke HAVE_BACKTRACE, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 25/35] Rename `rs-race' to `Lrs-race', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 26/35] Call `unw_backtrace()' explicitly in test-flush-cache.c,
Tommi Rantala <=
[Libunwind-devel] [PATCH 22/35] Rename `test-varargs' to `Ltest-varargs', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 27/35] Roll `test-nocalloc' into `Ltest-nocalloc.c', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 32/35] Enable coredump library build on ARM by default, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 30/35] Stop including `memory.h', Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 34/35] ppc32: include `libunwind_i.h' for UNUSED in ucontext_i.h, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 33/35] SuperH port, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 35/35] ppc32: `UNW_PPC32_REGS' fixlet, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 28/35] Call snprintf() from signal handler only if required in test-async-sig, Tommi Rantala, 2012/09/18
[Libunwind-devel] [PATCH 31/35] MIPS coredump support, Tommi Rantala, 2012/09/18