Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael <gdb-patches@cyberfiber.org>
To: Joel Brobecker <brobecker@adacore.com>, gdb-patches@sourceware.org
Subject: Re: gdb-patch mailing list
Date: Sat, 02 Jan 2010 08:48:00 -0000	[thread overview]
Message-ID: <4B3F083C.2080300@cyberfiber.org> (raw)
In-Reply-To: <4B3F03C4.1040104@cyberfiber.org>

Michael wrote:
> Joel,
>
> Ok, I'll have a look at it... I don't have any other thing to do 
> anyway. In the mean time you could perhaps try to find out why my 
> email doesn't appear on the mailing list anymore.
>
> Michael.
>
> Joel Brobecker wrote:
>> Michael,
>>
>> The gdb-patches mailing list should work. Can you try using it for
>> the next iteration?
>>
>> Again, please state the intent of the patch. What are you fixing?
>> I can often guess from the patch itself, but sometimes I get it wrong.
>> A good way of presenting your change, for instance, is to show the 
>> debugger
>> output before and after your patch,
>>
>> I am realizing that perhaps you don't know how to read the contents
>> of patch files? For instance:
>>
>>  
>>> diff --git a/gdb/ChangeLog b/gdb/ChangeLog
>>> index 753fbb0..bc71679 100644
>>> --- a/gdb/ChangeLog
>>> +++ b/gdb/ChangeLog
>>>     
>>
>> This bit of the patch says that you are modifying the ChangeLog.
>> I mentioned in a previous message that it's simpler for you to send
>> the entry as inlined text inside the body of your email, rather than
>> as a patch, but I don't mind.  However, looking further into the patch,
>> it says that you are proposing the following modifications to this file:
>>
>>
>>  
>>> -    Add new tracepoint action teval.
>>> -    * tracepoint.c (teval_pseudocommand): New function.
>>> -    (validate_actionline): Add teval action case.
>>> -    (encode_actions): Ditto.
>>> -    (_initialize_tracepoint): Define teval pseudocommand.
>>> -    * NEWS: Mention teval.
>>>     
>> [...]
>>
>> The leading minus '-' signs mean that you propose to remove this entry
>> (and many other entries). I don't think you really meant that.
this is not mine, I think you are in error??
>>
>> I couldn't locate any change that seemed to add an entry, but maybe
>> I missed it, since the diff was so large and mostly irrelevant.
>>
>>  
>>> -/* Print the status word STATUS.  */
>>> -
>>> -static void
>>> -print_i387_status_word (unsigned int status, struct ui_file *file)
>>> +/* print the status word */
>>> +static void print_i387_status_word (unsigned int status, struct 
>>> ui_file *file)
>>>     
>>
>> This part of the patch says that:
>>   (1) You are replacing the following comment:
>>         /* Print the status word STATUS.  */
>>       with:
>>         /* print the status word */
>>   (2) You are removing the newline between "static void" and
>>       the function name "print_i387_status_word"
>>
>> I don't think that (1) was really intended, was it? Your version
>> brings no additional information, but at the same time no longer
>> follow the GNU coding style: Comments should be English sentences
>> starting a capital letter and ending with a dot.  Not also the two
>> spaces after the dot, which is mandated by the GNU Coding Style.
>>
>>  
>>> -  fprintf_filtered (file, "Status Word:         %s",
>>> -            hex_string_custom (status, 4));
>>> +  fprintf_filtered (file, "status word              : %s\n", 
>>> hex_string_custom(status, 4));
>>>     
>>
>> You made a formatting change which is incorrect: The code should go no
>> further than column 78-80.  Please leave the call to hex_string_custom
>> on the next line where it was.  Make sure, when you send a new patch,
>> that the diff does not show any difference on this line, particularly
>> differences in spaces.
>>
>>  
>>> +  fprintf_filtered (file, "%s ", (status & 0x0020) ? "PE" : "  "); 
>>> /* precision */
>>>     
>>
>> I think that these added comments are superfluous - any developer 
>> working
>> on that code should have a basic knowledge of this FPU and thus know
>> what these abbreviations mean.  I do not mind them so much, except that
>> they cause the line to exceed 80 chars, or be sufficient close to it,
>> that these comments should be on a line of their own.
>>
>>   
>
>


  reply	other threads:[~2010-01-02  8:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4B3E4DC6.7020901@cyberfiber.org>
     [not found] ` <20100102043704.GR548@adacore.com>
2010-01-02  8:29   ` Michael
2010-01-02  8:48     ` Michael [this message]
     [not found]       ` <20100102093213.GX2788@adacore.com>
2010-01-02  9:33         ` Joel Brobecker
     [not found]           ` <4B3F252A.30504@cyberfiber.org>
     [not found]             ` <20100102111708.GV548@adacore.com>
2010-01-02 11:56               ` Michael
2010-01-03  5:32                 ` [RFA/i387] improve the output of 'info float' (was: "Re: gdb-patch mailing list") Joel Brobecker
2010-01-03  8:46                   ` Mark Kettenis
2010-01-03 10:47                     ` [RFA/i387] improve the output of 'info float' Michael
2010-01-03 10:52                     ` Michael
2010-01-04 18:47                     ` Michael
2010-01-03 10:46                   ` [RFA/i387] improve the output of 'info float' (was: "Re: gdb-patch mailing list") 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=4B3F083C.2080300@cyberfiber.org \
    --to=gdb-patches@cyberfiber.org \
    --cc=brobecker@adacore.com \
    --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