On Fri, Sep 30, 2011 at 10:36 AM, Richard Henderson <r...@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