From: Andrew Cagney <ac131313@redhat.com>
To: Richard Henderson <rth@twiddle.net>
Cc: Mark Kettenis <kettenis@chello.nl>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] update alpha return value hooks to regcache
Date: Mon, 02 Jun 2003 18:40:00 -0000 [thread overview]
Message-ID: <3EDB9A05.8050609@redhat.com> (raw)
In-Reply-To: <86znl08n1j.fsf@elgar.kettenis.dyndns.org>
> Richard Henderson <rth@twiddle.net> writes:
>
>
>> Ok?
>>
>> r~
>>
>> * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
>> (alpha_extract_struct_value_address): Likewise.
>> (alpha_store_return_value): Likewise.
>> (alpha_store_struct_return): Remove.
>> (alpha_gdbarch_init): Update hook registration to match.
>>
>
>
> Ah, this one's got a flaw. Using abort() isn't allowed in GDB.
> Instead use internal_error() which gives the user the option of
> continuing at his/her own risk. You could also use gdb_assert()
> (which calls internal_error()).
>
> With that change, this is approved.
BTW, also:
> ! case 4:
> ! alpha_convert_flt_dbl (raw_buffer, valbuf);
> ! valbuf = raw_buffer;
> ! /* FALLTHRU */
> !
> ! case 8:
> ! regcache_cooked_write (regcache, ALPHA_FP0_REGNUM, valbuf);
> ! break;
> !
> ! default:
> ! abort ();
please avoid the fallthrough.
Andrew
next prev parent reply other threads:[~2003-06-02 18:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 5:26 Richard Henderson
2003-06-02 16:25 ` Mark Kettenis
2003-06-02 18:40 ` Andrew Cagney [this message]
2003-06-02 20:55 ` Richard Henderson
2003-06-02 20:46 ` Richard Henderson
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=3EDB9A05.8050609@redhat.com \
--to=ac131313@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kettenis@chello.nl \
--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