qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Blue Swirl" <blauwirbel@gmail.com>
To: Magnus Damm <magnus.damm@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] sh4: more patches
Date: Wed, 4 Jul 2007 21:01:46 +0300	[thread overview]
Message-ID: <f43fc5580707041101h28723974u18a4908bdd21f4ad@mail.gmail.com> (raw)
In-Reply-To: <aec7e5c30707032144p25138e66t2d75c96a8384c7c9@mail.gmail.com>

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

On 7/4/07, Magnus Damm <magnus.damm@gmail.com> wrote:
> Ok, to begin with I've attached two patches needed for this to work on
> sh4. They are in quite hairy shape and not ready for upstream merge. I
> don't plan on submitting them upstream any time in the future - they
> are just useful for debugging. Anyway, I suspect you need to implement
> something similar for sparc64 as well.

Stepping to delay slot seems to work on sparc, maybe by accident.

> Together with the patches I've attached two gdb scripts.

Thanks. I didn't use gdbserver or cross-gdb, but both are native
gdb64s. Also, as I first produced 500 megs of memset and memcpy loop
dumps, I started the debugging after a known line (b unix.c:641) and
compressed the dump by xoring the interesting registers together.

Many thanks again, I already found one bug!

[-- Attachment #2: gdb-script.s64 --]
[-- Type: application/octet-stream, Size: 153 bytes --]

info target
b unix.c:641
r
while (1>0)
 x/i $pc
 p/x $g1^$g2^$g3^$g4^$g5^$g6^$g7^$i0^$i1^$i2^$i3^$i4^$i5^$l0^$l1^$l2^$l3^$l4^$l5^$l6^$l7
 stepi
end
quit

[-- Attachment #3: gdb-script.s64.qemu --]
[-- Type: application/octet-stream, Size: 181 bytes --]

target remote 10.0.0.2:1234
info target
b unix.c:641
c
while (1>0)
 x/i $pc
 p/x $g1^$g2^$g3^$g4^$g5^$g6^$g7^$i0^$i1^$i2^$i3^$i4^$i5^$l0^$l1^$l2^$l3^$l4^$l5^$l6^$l7
 stepi
end
quit

      reply	other threads:[~2007-07-04 18:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-22  7:44 [Qemu-devel] sh4: more patches Magnus Damm
2007-06-22 11:48 ` Thiemo Seufer
2007-06-25  6:42   ` Magnus Damm
2007-06-25 12:01     ` Thiemo Seufer
2007-07-04  4:19       ` Magnus Damm
2007-07-25  1:02         ` Paul Mundt
2007-06-25 15:28 ` Blue Swirl
2007-07-04  4:44   ` Magnus Damm
2007-07-04 18:01     ` Blue Swirl [this message]

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=f43fc5580707041101h28723974u18a4908bdd21f4ad@mail.gmail.com \
    --to=blauwirbel@gmail.com \
    --cc=magnus.damm@gmail.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 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).