Re: [Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image.

2012-04-17 Thread Richard Henderson
On 04/17/2012 02:46 AM, Avi Kivity wrote: > Attaching to process 2119 > jit_inferior_init > Reading symbols from /usr/local/bin/qemu-system-x86_64...done. > jit_inferior_init > jit_inferior_init, descriptor_addr = 0x6f7560 > Unable to read JIT descriptor from remote memory! Hmm, yes. You could wo

Re: [Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image.

2012-04-17 Thread Avi Kivity
On 04/16/2012 10:46 PM, Richard Henderson wrote: > On 04/16/2012 11:28 AM, Avi Kivity wrote: > > Unable to read JIT descriptor from remote memory! > > (gdb) bt > > #0 0x7f4a1257cae5 in ?? () > > #1 0x in ?? () > > (gdb) > > set debug jit 1 Added to .gdbinit: GNU gdb (GDB) Fe

Re: [Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image.

2012-04-16 Thread Richard Henderson
On 04/16/2012 11:28 AM, Avi Kivity wrote: > Unable to read JIT descriptor from remote memory! > (gdb) bt > #0 0x7f4a1257cae5 in ?? () > #1 0x in ?? () > (gdb) set debug jit 1 r~

Re: [Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image.

2012-04-16 Thread Avi Kivity
On 03/24/2012 07:47 PM, Richard Henderson wrote: > This allows us to actually supply a function name in softmmu builds; > gdb doesn't pick up the minimal symbol table otherwise. Also add a > bit of documentation and statically generate more of the ELF image. > > Looks like this is the cause of #

[Qemu-devel] [PATCH 1/4] tcg: Add debug_info to JIT ELF image.

2012-03-24 Thread Richard Henderson
This allows us to actually supply a function name in softmmu builds; gdb doesn't pick up the minimal symbol table otherwise. Also add a bit of documentation and statically generate more of the ELF image. Signed-off-by: Richard Henderson --- tcg/tcg.c | 233 +