From: Andrew Cagney <ac131313@ges.redhat.com>
To: Michael Snyder <msnyder@cygnus.com>
Cc: gdb-patches@sources.redhat.com, cagney@redhat.com
Subject: Re: [PATCH] mips-tdep.c: local defines, static functions
Date: Tue, 20 Aug 2002 18:29:00 -0000 [thread overview]
Message-ID: <3D62ECF9.50207@ges.redhat.com> (raw)
In-Reply-To: <200208210038.g7L0ci300745@reddwarf.sfbay.redhat.com>
> + #define MSYMBOL_IS_SPECIAL(msym) \
> + (((long) MSYMBOL_INFO (msym) & 0x80000000) != 0)
> + #define MSYMBOL_SIZE(msym) \
> + ((long) MSYMBOL_INFO (msym) & 0x7fffffff)
> +
``Macro's are bad m'kay.''
Could you please retain these functions:
- /* MSYMBOL_IS_SPECIAL tests the "special" bit in a minimal symbol. */
-
- int
- mips_msymbol_is_special (struct minimal_symbol *msym)
- {
- return (((long) MSYMBOL_INFO (msym) & 0x80000000) != 0);
- }
-
- /* MSYMBOL_SIZE returns the size of the minimal symbol, i.e. the
- "info" field with the "special" bit masked out. */
-
- long
- mips_msymbol_size (struct minimal_symbol *msym)
- {
- return ((long) MSYMBOL_INFO (msym) & 0x7fffffff);
- }
-
and instead replace references to MSYMBOL_IS_SPECIAL() with simple
function calls.
Andrew
next prev parent reply other threads:[~2002-08-21 1:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-20 17:55 Michael Snyder
2002-08-20 18:29 ` Andrew Cagney [this message]
2002-08-21 15:28 ` Michael Snyder
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=3D62ECF9.50207@ges.redhat.com \
--to=ac131313@ges.redhat.com \
--cc=cagney@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=msnyder@cygnus.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