All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dirk Behme <dirk.behme@googlemail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] MIPS single stepping
Date: Wed, 19 Apr 2006 20:31:50 +0200	[thread overview]
Message-ID: <44468216.8010305@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

Hi,

patch below makes GDB single stepping for MIPS work.

For debugging (breakpoint set), in
target-mips/translate.c/gen_intermediate_code_internal()
gen_opc_pc[] isn't initialized. So in debugging case don't call
cpu_restore_state() which then accesses uninitalized
gen_opc_pc[]. do_raise_exception_direct() indirectly calls
cpu_restore_state(), do_raise_exception() doesn't.

Best regards

Dirk

[-- Attachment #2: qemu-mips-single-step.txt --]
[-- Type: text/plain, Size: 331 bytes --]

--- ./target-mips/op.c_orig	2006-04-19 18:14:00.000000000 +0200
+++ ./target-mips/op.c	2006-04-19 18:14:29.000000000 +0200
@@ -604,7 +604,7 @@ void op_trap (void)
 
 void op_debug (void)
 {
-  CALL_FROM_TB1(do_raise_exception_direct, EXCP_DEBUG);
+  CALL_FROM_TB1(do_raise_exception, EXCP_DEBUG);
 }
 
 void op_set_lladdr (void)



             reply	other threads:[~2006-04-19 18:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-19 18:31 Dirk Behme [this message]
2006-04-19 20:22 ` [Qemu-devel] [PATCH] MIPS single stepping Stefan Weil
2006-04-19 22:50   ` Thiemo Seufer
2006-04-20  4:45     ` [Qemu-devel] MIPS patches, was: " Dirk Behme
2006-04-20  6:37       ` Raphaël Rigo
2006-04-20  7:12       ` Marius Groeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44468216.8010305@gmail.com \
    --to=dirk.behme@googlemail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.