1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-01-23 00:30:29 +01:00

(struct ia64_script_cache): New structure (broken out from global unwind state).

(Logical change 1.22)
This commit is contained in:
mostang.com!davidm 2002-11-09 07:59:02 +00:00
parent d7d0463d0b
commit e196ffd7eb

View file

@ -68,6 +68,20 @@ struct ia64_script
struct ia64_script_insn insn[IA64_MAX_SCRIPT_LEN];
};
struct ia64_script_cache
{
unsigned short lru_head; /* index of lead-recently used script */
unsigned short lru_tail; /* index of most-recently used script */
/* hash table that maps instruction pointer to script index: */
unsigned short hash[IA64_UNW_HASH_SIZE];
uint32_t generation; /* generation number */
/* script cache: */
struct ia64_script buckets[IA64_UNW_CACHE_SIZE];
};
#define ia64_script_lookup UNW_OBJ(ia64_script_lookup)
extern struct ia64_script *ia64_script_lookup (struct ia64_cursor *c);