This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] sim: Be sure of calling freeargv() after successfully call buildargv().
- From: Chen Gang S <gang dot chen at sunrus dot com dot cn>
- To: gdb-patches at sourceware dot org
- Date: Thu, 19 Feb 2015 08:41:58 +0800
- Subject: Re: [PATCH] sim: Be sure of calling freeargv() after successfully call buildargv().
- Authentication-results: sourceware.org; auth=none
- References: <54CC0E99 dot 1070501 at sunrus dot com dot cn> <20150217103425 dot GB544 at vapier> <54E3CC2D dot 40402 at sunrus dot com dot cn> <20150218002200 dot GQ544 at vapier>
On 2/18/15 08:22, Mike Frysinger wrote:
> On 18 Feb 2015 07:18, Chen Gang S wrote:
>> On 2/17/15 18:34, Mike Frysinger wrote:
>>> On 31 Jan 2015 07:07, Chen Gang S wrote:
>>>> --- a/sim/ChangeLog
>>>> +++ b/sim/ChangeLog
>>>> @@ -1,5 +1,10 @@
>>>> 2014-01-31 Chen Gang <gang.chen.5i5j@gmail.com>
>>>>
>>>> + * microblaze/interp.c (sim_do_command): Call freeargv() before
>>>> + return.
>>>
>>> this should be in sim/microblaze/ChangeLog instead. it looks like your last 4
>>> entries in sim/ChangeLog need to get relocated. please do so.
>>>
>>
>> Oh, really, I shall change the related comments.
>>
>>> while you're there, you should also fix your gentmap.c entry in
>>> sim/common/ChangeLog -- only one space after the * is used.
>>>
>>
>> Oh, really, I shall change the related comments.
>>
>>> as for the actual code, lgtm. thanks for fixing up the various error paths.
>>
>> That what I should do, since I focus on binutils and gdb. :-)
>>
>> And excuse me, I am not quite familiar with the related working flow.
>> Can I send 1 patch to fix the 2 comments, and "git push" it after it is
>> reviewed?.
>
> generally the sim tree follows the gdb/binutils procedure. i.e. people should
> post patches to the list and wait for approval from a relevant maintainer. we
> don't generally get strict with the rules as long as you have good intentions
> and aren't breaking things (like compile failures) :). so don't get too worried
> and feel free to ask as people don't mind helping guide newbies.
> -mike
>
OK, thanks. I shall send one patch for the 2 comments, next.
Thanks.
--
Chen Gang
Open, share, and attitude like air, water, and life which God blessed