From 813da6277cf6325ee97e7b7724e1672053356f4c Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 19 Mar 2012 12:25:11 -0700 Subject: tcg: Use the GDB JIT debugging interface. This allows us to generate unwind info for the dynamicly generated code in the code_gen_buffer. Only i386 is converted at this point. Signed-off-by: Richard Henderson Signed-off-by: Blue Swirl --- elf.h | 1 + 1 file changed, 1 insertion(+) (limited to 'elf.h') diff --git a/elf.h b/elf.h index 2e05d3462..310e05a8e 100644 --- a/elf.h +++ b/elf.h @@ -216,6 +216,7 @@ typedef int64_t Elf64_Sxword; #define ELF_ST_BIND(x) ((x) >> 4) #define ELF_ST_TYPE(x) (((unsigned int) x) & 0xf) +#define ELF_ST_INFO(bind, type) (((bind) << 4) | ((type) & 0xf)) #define ELF32_ST_BIND(x) ELF_ST_BIND(x) #define ELF32_ST_TYPE(x) ELF_ST_TYPE(x) #define ELF64_ST_BIND(x) ELF_ST_BIND(x) -- cgit v1.2.3-65-gdbad