Fix GDB unwinding through JIT-compiled frames.

pull/13171/head
Joshua Haberman 13 years ago
parent c0a08a6827
commit d29339d126
  1. 8
      Makefile

@ -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

Loading…
Cancel
Save