Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@ges.redhat.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [patch/rfc,RFA:doco] STORE_RETURN_VALUE with regcache
Date: Tue, 20 Aug 2002 13:01:00 -0000	[thread overview]
Message-ID: <3D62A021.9040700@ges.redhat.com> (raw)
In-Reply-To: <86lm71e6g9.fsf@elgar.kettenis.dyndns.org>

> Andrew Cagney <ac131313@ges.redhat.com> writes:
> 
> 
>> Hello,
>> 
>> The attached patch ``upgrades'' STORE_RETURN_VALUE so that it includes 
>> the register cache in which the value should be stored (it was using the 
>> current global register cache).
> 
> 
> Looks good to me.  However, patches like this one break pure
> multi-arch targets that are converted to use the non-deprecated
> variants of these functions if they don't fill in the deprecated
> function in their gdbarch too.
> 
> My idea for fixing this is illustrated by the following patch, but
> perhaps there is a more elegant way to do this?

Hmm, yes, the logic is messed up for this case.  I'll think about it 
some more with your patch.

> It also makes the buffer parameters ``[const] void *'' which is more 
>> like most other architecture methods.
> 
> 
> I noticed that you have been introducing bfd_byte in several of your
> recent patches.  Why's this better than using char?

Just ``char'' is dangerous as it could be signed or unsigned.  I've 
typically found that ``unsigned char'' is what is needed wanted.  I just 
stumbled across bfd_byte (typedef unsigned char) so have picked that up 
as a byte type.  Doesn't worry me.

enjoy,
Andrew



  reply	other threads:[~2002-08-20 20:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19 17:38 Andrew Cagney
2002-08-20 11:22 ` Mark Kettenis
2002-08-20 13:01   ` Andrew Cagney [this message]
2002-08-22 10:52     ` Andrew Cagney
2002-08-23  5:41       ` Mark Kettenis
2002-08-23  8:53       ` Eli Zaretskii
2002-08-23 17:35         ` Andrew Cagney

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=3D62A021.9040700@ges.redhat.com \
    --to=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kettenis@chello.nl \
    /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