From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30148 invoked by alias); 4 Jun 2012 04:25:50 -0000 Received: (qmail 30135 invoked by uid 22791); 4 Jun 2012 04:25:48 -0000 X-SWARE-Spam-Status: No, hits=-5.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_YY,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 04 Jun 2012 04:25:35 +0000 Received: by vbbey12 with SMTP id ey12so2701778vbb.0 for ; Sun, 03 Jun 2012 21:25:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding:x-system-of-record :x-gm-message-state; bh=Bgzr6OUDheLjP27qZxucI4pxPtzWMZY9muu8xoRKoGI=; b=DRX0WW4HaaYpXNEsiEel/thTZTWoSdpqyQ8Vsa4QFCD66tFlFvp9xsr/nw5PUfLR5D aej0EMMw0y8c9favqJxgLbVkfpoyu/2z+J/X1r5oW0rP86Z+mSDPR9OIyROzYMbteQob 2B8Y3qpvUE+3ei8d6C6wlPLJy5chfpeWM/tAAWxYHrocUDU39Mkmv+16+eA/Tuu3GDOA QRrVmBZWBt2m112vhxUe2DjrKb9hVeusbCPhGHWdxVyLcR2JsV+91SFrTkGatYV7cCMM 3QvGcbJ5hoFGyzEtLDr17kACOzzG9/F+KyCNNGaGghj3jsQdIS6GdlAWWiaxuoTDUEsE KddA== Received: by 10.52.94.109 with SMTP id db13mr9602756vdb.4.1338783934914; Sun, 03 Jun 2012 21:25:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.94.109 with SMTP id db13mr9602743vdb.4.1338783934749; Sun, 03 Jun 2012 21:25:34 -0700 (PDT) Received: by 10.52.161.199 with HTTP; Sun, 3 Jun 2012 21:25:34 -0700 (PDT) In-Reply-To: <1338665528-5932-4-git-send-email-sergiodj@redhat.com> References: <1338665528-5932-1-git-send-email-sergiodj@redhat.com> <1338665528-5932-4-git-send-email-sergiodj@redhat.com> Date: Mon, 04 Jun 2012 04:25:00 -0000 Message-ID: Subject: Re: [PATCH 03/10] C language From: Doug Evans To: Sergio Durigan Junior Cc: GDB Patches , Tom Tromey Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-Gm-Message-State: ALoCoQmsqHcqLIVU8hm04w967QrLqNCn/5qbvTEF7UKKp7e2f9S6xCfNxQhzCyy8q/LN3RB/x7vXWjcEC2OEaUBkMIdBfW0kwm+pPgWQb2cXvxzStILuPJMoHIvjcMuGqaDMD3aoxtdKmiwiK1WdMCdzzXjCN2SvBQ== X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00071.txt.bz2 On Sat, Jun 2, 2012 at 12:32 PM, Sergio Durigan Junior wrote: > @@ -2651,11 +2665,16 @@ yylex (void) > =A0} > > =A0int > -c_parse (void) > +c_parse (struct parser_state *par_state) > =A0{ > =A0 int result; > - =A0struct cleanup *back_to =3D make_cleanup (free_current_contents, > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 &expression_macro_scope); > + =A0struct cleanup *back_to; > + > + =A0/* Setting up the parser state. =A0*/ > + =A0gdb_assert (par_state !=3D NULL); > + =A0pstate =3D par_state; > + > + =A0back_to =3D make_cleanup (free_current_contents, &expression_macro_s= cope); > > =A0 /* Set up the scope for macro expansion. =A0*/ > =A0 expression_macro_scope =3D NULL; IWBN to reset pstate back to NULL when done.