1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-24 12:13:42 +01:00

Define UNW_LOCAL_ONLY before including <libunwind.h> so we get the

optimized version for unwind-table-searching.

(Logical change 1.144)
This commit is contained in:
hp.com!davidm 2003-12-20 11:38:49 +00:00
parent a114b907b1
commit c7312eceb2

View file

@ -27,11 +27,14 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#define _UPT_internal_h #define _UPT_internal_h
#include <errno.h> #include <errno.h>
#include <libunwind.h>
#include <limits.h> #include <limits.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
/* ensure tdep_search_unwind_table() uses optimized (local-only) version */
#define UNW_LOCAL_ONLY
#include <libunwind.h>
#include <sys/ptrace.h> #include <sys/ptrace.h>
#include "internal.h" #include "internal.h"