From: Orjan Friberg <orjan.friberg@axis.com>
To: Michael Snyder <msnyder@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: Defer register reading from remote target until needed?
Date: Fri, 04 Jun 2004 08:52:00 -0000 [thread overview]
Message-ID: <40C03854.1070907@axis.com> (raw)
In-Reply-To: <40BF6D09.7080909@redhat.com>
Michael Snyder wrote:
>
> It's supposed to work that way already. Either something's broken, or
> some register other than the ones you named *is* needed. The 'g' pkt
> should only go out if gdb needs the value of a register that it doesn't
> already have.
>
> This can sometimes happen 'indirectly', eg. if you try to set a
> register, gdb may try to read it first.
>
> Try setting a breakpoint in remote_fetch_registers, then go up
> the stack and see what register gdb is trying to read.
Ah; it's because we need the subroutine return pointer when unwinding
the pc. Thanks.
--
Orjan Friberg
Axis Communications
prev parent reply other threads:[~2004-06-04 8:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-03 13:08 Orjan Friberg
2004-06-03 18:25 ` Michael Snyder
2004-06-04 8:52 ` Orjan Friberg [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=40C03854.1070907@axis.com \
--to=orjan.friberg@axis.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@redhat.com \
/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