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

> Date: Fri, 5 Oct 2007 20:06:20 +0200 (CEST)
> From: "Ulrich Weigand" <uweigand@de.ibm.com>
> 
> this removes the SOFUN_ADDRESS_MAYBE_MISSING target macro.  There are
> two main parts to this:
> 
> - struct minimal_symbol used to have the member "filename" present
>   only when SOFUN_ADDRESS_MAYBE_MISSING was true.  The patch changes
>   this to make the member always available.  Code used to initialize
>   and use those filenames is now also enabled unconditionally.  (This
>   should not actually change the behaviour of GDB on any target.)
> 
> - Instead of the SOFUN_ADDRESS_MAYBE_MISSING macro, a new gdbarch
>   variable gdbarch_sofun_address_maybe_missing is introduces.  All
>   places where GDB behaviour depended on SOFUN_ADDRESS_MAYBE_MISSING
>   now look at that gdbarch variable instead.

Thanks.

> doc/ChangeLog:
> 
> 	* gdbint.texinfo: Document gdbarch_sofun_address_maybe_missing
> 	instead of SOFUN_ADDRESS_MAYBE_MISSING.

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).

 . 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).

 . 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:

> -@code{SOFUN_ADDRESS_MAYBE_MISSING} indicates that a particular set of
> +@code{gdbarch_sofun_address_maybe_missing} indicates that a particular set of

A function cannot _indicate_ anything, it can return a value that
indicates something.  (The old text was correct because the macro was
used in an #ifdef at compile time.)

> -@code{SOFUN_ADDRESS_MAYBE_MISSING} means two things:
> +@code{gdbarch_sofun_address_maybe_missing} means two things:

Again, a function cannot _mean_ anything; please rephrase.


  reply	other threads:[~2007-10-06  7:16 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 [this message]
2007-10-08 11:19   ` Ulrich Weigand
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=u8x6g90h8.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=uweigand@de.ibm.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