qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Steven Seeger <steven.seeger@flightsystems.net>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: QEMU Developers <qemu-devel@nongnu.org>,
	Richard Henderson <rth@twiddle.net>,
	Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
	Artyom Tarasenko <atar4qemu@gmail.com>
Subject: Re: [Qemu-devel] [PATCH 01/02] fix issue where a branch to pc+4 confuses GDB because pc and npc are set to the same value
Date: Thu, 15 Feb 2018 22:01:13 -0500	[thread overview]
Message-ID: <1954706.4zhPn1VUeE@wirbelwind> (raw)
In-Reply-To: <CAFEAcA_xHpd5_RVp4_Be3wOa_U6YTpN0wiKheMYApuSOkbtjHw@mail.gmail.com>

All,

I think that the issue I pointed out the list is not a QEMU bug at all but a 
GDB bug. GDB's sparc software single step implementation seems to be what is 
stuck. It always re-sets the breakpoint at the current instruction in this 
case. It calculates the breakpoint offsets by analyzing the instruction and 
doesn't take this edge case into account. It does not appear to receive an 
invalid npc value from QEMU as I thought it was.

Steven

      parent reply	other threads:[~2018-02-16  3:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-15 19:15 [Qemu-devel] [PATCH 01/02] fix issue where a branch to pc+4 confuses GDB because pc and npc are set to the same value Steven Seeger
2018-02-15 19:39 ` Peter Maydell
2018-02-15 21:03   ` Steven Seeger
2018-02-15 21:06   ` Steven Seeger
2018-02-16  3:01   ` Steven Seeger [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=1954706.4zhPn1VUeE@wirbelwind \
    --to=steven.seeger@flightsystems.net \
    --cc=atar4qemu@gmail.com \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).