mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-04-24 12:22:16 +02:00
(Logical change 1.22)
This commit is contained in:
parent
e04493ac30
commit
aca9360701
4 changed files with 28 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
#ifndef UNW_REMOTE_ONLY
|
||||
#define UNW_LOCAL_ONLY
|
||||
#include "unw_flush_cache.c"
|
||||
#endif
|
|
@ -0,0 +1,4 @@
|
|||
#ifndef UNW_REMOTE_ONLY
|
||||
#define UNW_LOCAL_ONLY
|
||||
#include "unw_set_caching_policy.c"
|
||||
#endif
|
|
@ -0,0 +1,6 @@
|
|||
void
|
||||
unw_flush_cache (void)
|
||||
{
|
||||
/* this lets us flush caches lazily... */
|
||||
++unw.cache_generation;
|
||||
}
|
|
@ -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 ();
|
||||
}
|
Loading…
Add table
Reference in a new issue