diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-09-21 10:52:44 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-09-21 10:52:44 -0700 |
commit | d29339d126c50818b7f21d2581caadfeea946934 (patch) | |
tree | c2d6a2969ff4d84e06bde2dbd0a17df793c41fa8 | |
parent | c0a08a6827a294f74b0ee5feaf5542081cff4381 (diff) |
Fix GDB unwinding through JIT-compiled frames.
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -162,9 +162,13 @@ upb/pb/jit_debug_elf_file.o: upb/pb/jit_debug_elf_file.s $(E) GAS $< $(Q) gcc -c upb/pb/jit_debug_elf_file.s -o upb/pb/jit_debug_elf_file.o -upb/pb/jit_debug_elf_file.h: upb/pb/jit_debug_elf_file.o +upb/pb/jit_debug_elf_file2.o: upb/pb/jit_debug_elf_file.o + $(E) OBJCOPY $< + $(Q) objcopy --change-section-address .text=0x12345678 $< $@ + +upb/pb/jit_debug_elf_file.h: upb/pb/jit_debug_elf_file2.o $(E) XXD $< - $(Q) xxd -i < upb/pb/jit_debug_elf_file.o > upb/pb/jit_debug_elf_file.h + $(Q) xxd -i < upb/pb/jit_debug_elf_file2.o > upb/pb/jit_debug_elf_file.h upb/pb/decoder_x64.h: upb/pb/jit_debug_elf_file.h endif |