Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@redhat.com>
To: Andrew Cagney <cagney@gnu.org>
Cc: gdb-patches@sources.redhat.com, drow@false.org
Subject: Re: [RFC/RFA] MIPS extract_return_value
Date: Mon, 07 Jun 2004 19:24:00 -0000	[thread overview]
Message-ID: <40C4C0F1.7090805@redhat.com> (raw)
In-Reply-To: <40C48842.9020706@gnu.org>

Andrew Cagney wrote:
>> Hey Andrew, Daniel,
>>
>> I encountered another problem with 32/64 bit mips.  Don't know if this
>> is the right way to fix it, but it illustrates it (and fixes several
>> hundred failures).
>>
>> The problem is that extract_return_value and store_return_value both
>> call return_value_location, but then one of them uses the raw register
>> and the other uses the cooked register (which are not the same size).
>> So the offset into the register cache, computed by
>> return_value_location, has to be wrong for one of them.
> 
> 
> The underlying problem here is that eabi (32 and 64) and o64 still use:
> 
>       set_gdbarch_deprecated_store_return_value (gdbarch,
>       set_gdbarch_deprecated_extract_return_value (gdbarch,
> 
> There should instead be separate eabi and o64 return_value methods (see 
>  mips_n32n64_return_value for an example).
> 
> If this is done the return/finish code will really be fixed (and as a 
> side effect return_value_location will be eliminated).  Can that be done?

Obviously this is the correct thing to do, but it requires more
investment than I have to give in the foreseeable future.



      reply	other threads:[~2004-06-07 19:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-04  1:38 Michael Snyder
2004-06-07 15:22 ` Andrew Cagney
2004-06-07 19:24   ` Michael Snyder [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=40C4C0F1.7090805@redhat.com \
    --to=msnyder@redhat.com \
    --cc=cagney@gnu.org \
    --cc=drow@false.org \
    --cc=gdb-patches@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