[PATCH 03/10] C language

Sergio Durigan Junior sergiodj@redhat.com
Mon Jun 4 04:32:00 GMT 2012


On Monday, June 04 2012, Doug Evans wrote:

> On Sat, Jun 2, 2012 at 12:32 PM, Sergio Durigan Junior
> <sergiodj@redhat.com> wrote:
>> @@ -2651,11 +2665,16 @@ yylex (void)
>>  }
>>
>>  int
>> -c_parse (void)
>> +c_parse (struct parser_state *par_state)
>>  {
>>   int result;
>> -  struct cleanup *back_to = make_cleanup (free_current_contents,
>> -                                         &expression_macro_scope);
>> +  struct cleanup *back_to;
>> +
>> +  /* Setting up the parser state.  */
>> +  gdb_assert (par_state != NULL);
>> +  pstate = par_state;
>> +
>> +  back_to = make_cleanup (free_current_contents, &expression_macro_scope);
>>
>>   /* Set up the scope for macro expansion.  */
>>   expression_macro_scope = NULL;
>
> IWBN to reset pstate back to NULL when done.

I did that in a first draft, but then removed it.  I will fix it for
every patch, then (but won't resubmit all of them because that would be
worthless).  Thanks.

-- 
Sergio



More information about the Gdb-patches mailing list