From: Andrew Cagney <ac131313@redhat.com>
To: Mark Kettenis <kettenis@chello.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfa/i386] FP_REGNUM_P() -> i386_fp_regnum_p() et.al.
Date: Fri, 08 Nov 2002 08:34:00 -0000 [thread overview]
Message-ID: <3DCBE7A1.6030007@redhat.com> (raw)
In-Reply-To: <863cqc6xdf.fsf@elgar.kettenis.dyndns.org>
> Andrew Cagney <ac131313@redhat.com> writes:
>
>
>> The attached:
>>
>> - converts all the macro's into functions
>>
>> - makes the function checks more robust - return true when both the
>> regnum matches and the ISA has the register
>>
>> - adds a method to test for the orig_eax register (the
>> I386_LINUX_ORIG_EAX_REGNUM is moved from i386-linux-tdep.h to i386-tdep.h).
>>
>> Ok to commit?
>
>
> Looks good, but why the move of the Linux orig_eax register test to
> i386-tdep.{c|h}? I'd really keep this Linux-specific quirk isolated
> in a Linux-specific file.
I'd two choices:
- move ORIG_EAX into i386-tdep.c so that (in the next patch)
i386_register_reggroup_p() can use it
- make i386_register_reggroup_p() a global so that a
i386_linux_register_reggroup_p() can call it
I took the first one. I'll re-arange things so that my follow on patch
uses the second method instead.
> Ok with that change. Otherwise we might need to discuss this a bit more ;-).
Andrew
next prev parent reply other threads:[~2002-11-08 16:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-06 11:51 Andrew Cagney
2002-11-08 4:48 ` Mark Kettenis
2002-11-08 8:34 ` Andrew Cagney [this message]
2002-11-08 8:53 ` Andrew Cagney
2002-11-08 9:04 ` 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=3DCBE7A1.6030007@redhat.com \
--to=ac131313@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