[Crash-utility] Patch to add comments

Olivier Daudel olivier.daudel at u-paris10.fr
Mon Apr 16 09:30:29 UTC 2012


The patch with your advises.
Olivier


--------------------------------------------------
From: "Dave Anderson" <anderson at redhat.com>
Sent: Tuesday, April 10, 2012 4:44 PM
To: "Discussion list for crash utility usage,maintenance and development" 
<crash-utility at redhat.com>
Subject: Re: [Crash-utility] Patch to add comments

>
>
> ----- Original Message -----
>>
>>
>> Dave Anderson <anderson at redhat.com> a écrit :
>>
>> >
>> >
>> > ----- Original Message -----
>> >>
>> >>
>> >> Hello Dave,
>> >> A small cosmetic pach to add comments in the crash flow.
>> >> Of course we may use !# to do this, but to call a shell just for a
>> >> comment seems rather hard ?
>> >
>> > True -- but your patch that makes "#" an actual command is
>> > way-overkill.
>> >
>> > Why not do this:
>> >
>> > --- main.c      20 Mar 2012 18:11:46 -0000      1.130
>> > +++ main.c      10 Apr 2012 13:59:45 -0000
>> > @@ -768,6 +768,9 @@ exec_command(void)
>> >         if (is_datatype_command())
>> >                 goto reattempt;
>> >
>> > +       if (STRNEQ(args[0], "#"))
>> > +               return;
>> > +
>> >        if (!(pc->flags & MINIMAL_MODE) &&
>> >            is_gdb_command(TRUE, FAULT_ON_ERROR))
>> >                goto reattempt;
>> >
>> > Dave
>> >
>> >
>> >
>> > --
>> > Crash-utility mailing list
>> > Crash-utility at redhat.com
>> > https://www.redhat.com/mailman/listinfo/crash-utility
>> >
>> Thanks, simple is better!
>> Nevertheless, do we keep something in the help file or do we just
>> "know" the way to push comment ?
>> Olivier
>
> A line should probably be added to the "help input" page,
> which is the input_info[] string array in help.c.
>
> Dave
>
>
>
> --
> Crash-utility mailing list
> Crash-utility at redhat.com
> https://www.redhat.com/mailman/listinfo/crash-utility
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: comment.patch
Type: application/octet-stream
Size: 1099 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20120416/0b22bb9f/attachment.obj>


More information about the Crash-utility mailing list