This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Support _Complex in hard-VFP abi
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>, Will Newton <will dot newton at linaro dot org>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Wed, 20 Aug 2014 09:20:49 +0100
- Subject: Re: [PATCH] Support _Complex in hard-VFP abi
- Authentication-results: sourceware.org; auth=none
- References: <1407761487-9251-1-git-send-email-yao at codesourcery dot com> <CANu=Dmizt9SZmfLO=_yO6pwThFu+oAh8bbjPtXFAcmGDB+2amQ at mail dot gmail dot com> <53F34D56 dot 5050705 at codesourcery dot com> <53F3D349 dot 9080904 at redhat dot com> <53F41920 dot 8040800 at codesourcery dot com>
On 08/20/2014 04:42 AM, Yao Qi wrote:
> On 08/20/2014 06:44 AM, Pedro Alves wrote:
>> This is borderline pedantry, but this looks ugly enough to me that
>> I'll speak up in case this ends up being the norm. :-) FWIW, I agree
>> with Will here -- I think we should make an exception to the rule
>> in the cases where the comment is actually a paste of output,
>> multiline code or similar cases. It's kind of like a @smallexample
>> region in texinfo, that begs to be rendered on its own block/lines,
>> separate from the text around it.
>
> I am fine with this exception here, but we'd better document it.
>
> The rule is documented here
> https://sourceware.org/gdb/wiki/Internals%20GDB-C-Coding-Standards
>
> Block comments must appear in the following form, with no /*- or */-only lines, and no leading *:
>
> /* Wait for control to return from inferior to debugger. If inferior
> gets a signal, we may decide to start it up again instead of
> returning. That is why there is a loop in this function. When
> this function actually returns it means the inferior should be left
> stopped and GDB should read more commands. */
>
> I propose to add the following words after this paragraph above,
>
> "Exceptionally, */ can be put at a separate line if the comment is ended
> with an example, an output or a code snippet:
>
> /* Arguments of complex T where T is one of the types float or
> double get treated as if they are implemented as:
>
> struct complexT
> {
> T real;
> T imag;
> };
>
> */"
>
That's excellent, IMO.
> The patch below updates the comments I've seen in current code base.
>
Looks great to me.
Thanks,
Pedro Alves