qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v2] Use the GDB JIT debugging interface
@ 2012-03-19 19:25 Richard Henderson
  2012-03-19 19:25 ` [Qemu-devel] [PATCH] tcg: " Richard Henderson
  2012-03-19 20:08 ` [Qemu-devel] [PATCH v2] " Peter Maydell
  0 siblings, 2 replies; 6+ messages in thread
From: Richard Henderson @ 2012-03-19 19:25 UTC (permalink / raw)
  To: qemu-devel

I was reminded about this from a comment on the list, where
a new developer had gotten confused by our backtrace.

Changes from V1 to V2:
  * Rebase to master.

  * Do not try to allocate the ELF stuff within the code_gen_buffer.
    Instead we can use a SHT_NOBITS trick to say that's out-of-line.

  * Use C structures (with alignment and packing annotations) to create
    the Dwarf2 unwind info.  Previously I had used inline assembly.


Example:

Breakpoint 1, helper_idivl_EAX (t0=512)
    at /home/rth/work/qemu/qemu/target-i386/op_helper.c:1882
1882	{
(gdb) where
#0  helper_idivl_EAX (t0=512)
    at /home/rth/work/qemu/qemu/target-i386/op_helper.c:1882
#1  0x00005555557c0fdf in static_code_gen_buffer ()
#2  0x000055555559714d in cpu_x86_exec (env=0x5555577fba30)
    at /home/rth/work/qemu/qemu/cpu-exec.c:564
#3  0x00005555555b3290 in cpu_loop (env=0x5555577fba30)
    at /home/rth/work/qemu/qemu/linux-user/main.c:317
#4  0x00005555555b40a4 in main (argc=<optimized out>, argv=<optimized out>, 
    envp=<optimized out>) at /home/rth/work/qemu/qemu/linux-user/main.c:3826


r~


Richard Henderson (1):
  tcg: Use the GDB JIT debugging interface.

 elf.h                 |    1 +
 exec.c                |    1 +
 tcg/i386/tcg-target.c |  114 ++++++++++++++++++++++++++--
 tcg/tcg.c             |  194 +++++++++++++++++++++++++++++++++++++++++++++++++
 tcg/tcg.h             |    2 +
 5 files changed, 303 insertions(+), 9 deletions(-)

-- 
1.7.7.6

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-24 17:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 19:25 [Qemu-devel] [PATCH v2] Use the GDB JIT debugging interface Richard Henderson
2012-03-19 19:25 ` [Qemu-devel] [PATCH] tcg: " Richard Henderson
2012-03-24 16:11   ` Blue Swirl
2012-03-24 17:04     ` Peter Maydell
2012-03-19 20:08 ` [Qemu-devel] [PATCH v2] " Peter Maydell
2012-03-19 20:48   ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).