From b3757e7792fdd92b49e2c8936e384009add4fee3 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Sat, 29 May 2010 01:07:40 +0300 Subject: [PATCH] Restore the linking when --enable-debug-frame is not specified --- src/ptrace/_UPT_find_proc_info.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ptrace/_UPT_find_proc_info.c b/src/ptrace/_UPT_find_proc_info.c index 97bf9e21..0c000392 100644 --- a/src/ptrace/_UPT_find_proc_info.c +++ b/src/ptrace/_UPT_find_proc_info.c @@ -210,6 +210,7 @@ _UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as, } } if (!ptxt || !peh_hdr) +#ifdef CONFIG_DEBUG_FRAME { /* No .eh_frame found, try .debug_frame. */ struct dl_phdr_info info; @@ -235,6 +236,9 @@ _UPTi_find_unwind_table (struct UPT_info *ui, unw_addr_space_t as, else return NULL; } +#else + return NULL; +#endif if (pdyn) {