qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Blue Swirl <blauwirbel@gmail.com>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: [Qemu-devel] PPC debugging broken
Date: Fri, 13 Feb 2009 22:30:27 +0200	[thread overview]
Message-ID: <f43fc5580902131230y732855a8l7420bf6c0c2a4546@mail.gmail.com> (raw)

It looks like debugging confuses PPC branch code generation.

For example, I'm doing single stepping from GDB:
IN: cmdline_prompt
0xfff158a0:  b       0xfff15960
(Unconditional branch to 0xfff15960)
OP:
 movi_i32 nip,$0xfff15960
(OK, branch)
 movi_i32 nip,$0xfff158a4
(WTF?)
 movi_i32 tmp0,$0x10002
 movi_i64 tmp1,$raise_exception
 call tmp1,$0x0,$0,tmp0
 exit_tb $0x0

(Execution continues on $nip + 4 instead of branch target)
IN: cmdline_prompt
0xfff158a4:  lis     r9,-12

OP:
 movi_i32 r9,$0xfff40000
 movi_i32 nip,$0xfff158a8
 movi_i32 nip,$0xfff158a8
 movi_i32 tmp0,$0x10002
 movi_i64 tmp1,$raise_exception
 call tmp1,$0x0,$0,tmp0
 exit_tb $0x0

                 reply	other threads:[~2009-02-13 20:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=f43fc5580902131230y732855a8l7420bf6c0c2a4546@mail.gmail.com \
    --to=blauwirbel@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).