Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Kevin Buettner <kevinb@redhat.com>
To: Romain Berrendonner <berrendo@ACT-Europe.FR>
Cc: gdb@sources.redhat.com
Subject: Re: compatibility between gdb and stub
Date: Wed, 20 Nov 2002 13:04:00 -0000	[thread overview]
Message-ID: <1021120210450.ZM24337@localhost.localdomain> (raw)
In-Reply-To: Romain Berrendonner <berrendo@ACT-Europe.FR> "Re: compatibility between gdb and stub" (Nov 19, 10:20am)

On Nov 19, 10:20am, Romain Berrendonner wrote:

> On 2002-11-18, Kevin Buettner wrote :
> 
> > On Nov 18,  3:09pm, Romain Berrendonner wrote:
> > 
> > > The file rs6000-tdep.c however, which was very similar in gdb 5.1 and
> > > gdb 5.2, changed in the 5.3 branch, causing interoperability disruption
> > > with older stubs, due to the definition of fpscr.
> > 
> > It was my intent to add fpscr in such a way so that existing stubs
> > would not be broken.  It sounds like I didn't succeed.  Can you explain
> > the problem that you're seeing?
> 
> Here's my understanding of how the 'G' and 'g' commands work: 
> 
> 1/ gdb has a list of all registers for the variant of processor it is
> currently using. Each register has a size (4 or 8 bytes).
> 
> 2/ When it need to send a 'G' packet, it concatenates the contents of
> all the registers, as specified in the definition: the number of
> registers, their size and their order matters. Conversely, when it needs
> to parse a 'g' packet, it knows the value of each registers by the value
> of the bytes corresponding to its position in the data flow.
> 
> Now, I have a stub working with 5.1, and I'm considering using it with 5.3.
> In rs6000-tdep.c for gdb 5.1 we got:
> 
> #define PPC_UISA_SPRS \
>   /* 66 */ R4(cr),  R(lr), R(ctr), R4(xer), R0
> 
> In rs6000-tdep.c for gdb 5.3 we got:
> 
> #define PPC_UISA_SPRS \
>   /* 66 */ R4(cr),  R(lr), R(ctr), R4(xer), R4(fpscr)
> 
> So the slot 70 is now used, while it was empty before. This is why I suspected
> a non-compatibility with older stubs.

As I understand it, if a stub replies with a short "g" packet, then
gdb will simply regard the missing registers as being unavailable.

Kevin


  reply	other threads:[~2002-11-20 21:04 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-18  6:09 Romain Berrendonner
2002-11-18  8:05 ` Andrew Cagney
2002-11-18  8:46   ` Romain Berrendonner
2002-11-18 14:56 ` Kevin Buettner
2002-11-18 17:40   ` Steven Johnson
2002-11-18 17:43     ` Daniel Jacobowitz
2002-11-19  1:20   ` Romain Berrendonner
2002-11-20 13:04     ` Kevin Buettner [this message]
2002-11-20 13:19       ` Andrew Cagney
2002-11-21  1:44       ` Romain Berrendonner
2002-11-26 13:56         ` Andrew Cagney
2002-11-26 15:37           ` Steven Johnson
2002-11-26 16:01             ` Andrew Cagney
2002-11-27 11:34         ` Kevin Buettner

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=1021120210450.ZM24337@localhost.localdomain \
    --to=kevinb@redhat.com \
    --cc=berrendo@ACT-Europe.FR \
    --cc=gdb@sources.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