Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: eliz@gnu.org
Cc: gdb-patches@sourceware.org
Subject: Re: [rfc/rft] [3/3] Remove stabs target macros: SOFUN_ADDRESS_MAYBE_MISSING
Date: Mon, 08 Oct 2007 11:19:00 -0000	[thread overview]
Message-ID: <200710081119.l98BJalB008158@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <u8x6g90h8.fsf@gnu.org> from "Eli Zaretskii" at Oct 06, 2007 09:16:35 AM

Eli Zaretskii wrote;

> This part is almost okay; I have a few minor comments:
> 
>  . The ChangeLog entry needs to state the name(s) of the node(s) where
>    you make the changes (in parens, as if they were names of
>    functions).

Sure, I'll do that.

>  . Please put the function prototypes where you describe them.  For
>    example:
> 
> > -@item SOFUN_ADDRESS_MAYBE_MISSING
> > -@findex SOFUN_ADDRESS_MAYBE_MISSING
> > +@item int gdbarch_sofun_address_maybe_missing
> > +@findex gdbarch_sofun_address_maybe_missing
> 
> The old SOFUN_ADDRESS_MAYBE_MISSING was a macro without arguments, but
> the new gdbarch_sofun_address_maybe_missing is a function that accepts
> arguments.  The @item line should show the full prototype of the
> function, including the type(s) of its argument(s).

Well, the sofun_address_maybe_missing gdbarch entry is of type "v",
i.e. it is a simple variable of type "int", not a function.

That means the argument to set_gdbarch_sofun_address_maybe_missing
is a simple boolean.  I had thought the documentation for gdbarch
entries should refer to the entity that you pass to the set_gdbarch_
function; after all that is what the -tdep.c programmer writes.

On the other hand, the accessor function gdbarch_sofun_address_maybe_missing
does have an argument, namely the gdbarch that is being queried.  I see
that some of the other entries do show these arguments, so you could say
it should be added in the case as well.

I guess the question is, what is the entity that the documentation
should specify for gdbarch entries:

- the gdbarch_... accessor function
or
- the argument passed to the set_gdbarch_... routine

I'll be happy to do it either way, please let me know which you prefer.

>  . Some of the changes were too mechanical: replacing a macro with a
>    function sometimes needs more elaborate changes in the text to
>    avoid unclear or incorrect wording:

This is because I was describing a boolean "int" value, not a 
function.  If we're to describe the access functions, that needs
to be rephrased accordingly, of course.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


  reply	other threads:[~2007-10-08 11:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-05 18:06 Ulrich Weigand
2007-10-06  7:16 ` Eli Zaretskii
2007-10-08 11:19   ` Ulrich Weigand [this message]
2007-10-08 23:17     ` Eli Zaretskii
2007-10-09 19:55       ` Ulrich Weigand
2007-10-09 23:29         ` Eli Zaretskii
2007-10-14 20:32           ` Ulrich Weigand
2007-10-14 22:16             ` Eli Zaretskii
2007-10-15 14:10               ` Ulrich Weigand
2007-10-15 17:53                 ` Eli Zaretskii

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=200710081119.l98BJalB008158@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /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