1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-28 20:21:45 +02:00

(Logical change 1.22)

This commit is contained in:
mostang.com!davidm 2002-11-09 07:59:02 +00:00
parent e04493ac30
commit aca9360701
4 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,4 @@
#ifndef UNW_REMOTE_ONLY
#define UNW_LOCAL_ONLY
#include "unw_flush_cache.c"
#endif

View file

@ -0,0 +1,4 @@
#ifndef UNW_REMOTE_ONLY
#define UNW_LOCAL_ONLY
#include "unw_set_caching_policy.c"
#endif

View file

@ -0,0 +1,6 @@
void
unw_flush_cache (void)
{
/* this lets us flush caches lazily... */
++unw.cache_generation;
}

View file

@ -0,0 +1,14 @@
#include "unwind_i.h"
int
unw_set_caching_policy (unw_caching_policy_t policy)
{
#ifndef HAVE___THREAD
if (policy == UNW_CACHE_PER_THREAD)
return -UNW_EINVAL;
#endif
unw.caching_policy = policy;
if (policy == UNW_CACHE_NONE)
unw_flush_cache ();
}