This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [PATCH] tcg: Use the GDB JIT debugging interface.
- From: Daniel Jacobowitz <drow at false dot org>
- To: Richard Henderson <rth at twiddle dot net>
- Cc: Jan Kiszka <jan dot kiszka at web dot de>, qemu-devel at nongnu dot org, gdb at sourceware dot org
- Date: Sat, 1 Oct 2011 22:04:31 -0400
- Subject: Re: [PATCH] tcg: Use the GDB JIT debugging interface.
- References: <1317339968-16212-1-git-send-email-rth@twiddle.net> <4E856BDE.80904@web.de> <4E85D3DF.7070307@twiddle.net>
On Fri, Sep 30, 2011 at 10:36 AM, Richard Henderson <rth@twiddle.net> wrote:
> On 09/30/2011 12:12 AM, Jan Kiszka wrote:
>>> Breakpoint 1, __ldb_mmu (addr=1001716, mmu_idx=0)
>>> ? ? at /home/rth/work/qemu/qemu/softmmu_template.h:86
>>> 86 ? {
>>> (gdb) where
>>> #0 ?__ldb_mmu (addr=1001716, mmu_idx=0)
>>> ? ? at /home/rth/work/qemu/qemu/softmmu_template.h:86
>>> #1 ?0x0000000040000afc in ?? ()
> ...
>> Would it be possible to tag translated code as well? At TB or maybe even
>> input instruction level? Only in debugging mode of course.
>
> I don't know. ?A couple of points on that:
>
> (1) I was rather expecting frame 1 above to be marked "code_gen_buffer"
> ? ?rather than "??". ?I *did* install that symbol in the generated
> ? ?ELF image as a function covering the entire buffer. ?So I'm not
> ? ?quite sure why GDB didn't use it.
Totally wild guess: associated with the wrong section? I don't
remember what we do w.r.t. ABS in shared libraries, but for non-ABS we
do validate what section we think things are in. And I'm not sure if
we load section info in the JIT loader, either.
--
Thanks,
Daniel