From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 938 invoked by alias); 23 Jan 2015 18:00:19 -0000 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 Received: (qmail 671 invoked by uid 89); 23 Jan 2015 18:00:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg20.ericsson.net Received: from usevmg20.ericsson.net (HELO usevmg20.ericsson.net) (198.24.6.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 23 Jan 2015 18:00:05 +0000 Received: from EUSAAHC003.ericsson.se (Unknown_Domain [147.117.188.81]) by usevmg20.ericsson.net (Symantec Mail Security) with SMTP id 9A.8B.03307.C7932C45; Fri, 23 Jan 2015 13:07:24 +0100 (CET) Received: from [142.133.110.232] (147.117.188.8) by smtp-am.internal.ericsson.com (147.117.188.83) with Microsoft SMTP Server id 14.3.195.1; Fri, 23 Jan 2015 13:00:02 -0500 Message-ID: <54C28C22.9070405@ericsson.com> Date: Sat, 24 Jan 2015 01:46:00 -0000 From: Simon Marchi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Pedro Alves , CC: Subject: Re: [PATCH v2] Catch exception in value_rtti_indirect_type References: <1411174953-8930-1-git-send-email-simon.marchi@ericsson.com> <54809E38.3080606@redhat.com> <54821670.6020006@ericsson.com> <54C23FB2.90300@redhat.com> <54C27035.5030205@ericsson.com> <54C27B67.3000209@redhat.com> In-Reply-To: <54C27B67.3000209@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00661.txt.bz2 On 15-01-23 11:48 AM, Pedro Alves wrote: > On 01/23/2015 04:00 PM, Simon Marchi wrote: >=20 >> Hmm I am now getting a >> >> /home/emaisin/src/binutils-gdb/gdb/valops.c:3625:13: error: =E2=80=98tar= get=E2=80=99 may be used uninitialized in this function [-Werror=3Dmaybe-un= initialized] >> real_type =3D value_rtti_type (target, full, top, using_enc); >> >> Logically, target can't be uninitialized there because of the exception = throw. I would expect gcc to be >> smarter about it, since throw_error is marked as noreturn. I can obvious= ly fix it by assigning it to NULL >> at declaration time, but is there a better way of getting rid of the err= or in these cases? >=20 > Bah. Yeah, initializing as NULL is fine. >=20 > Thanks, > Pedro Alves Thanks, pushed.