From patchwork Thu Jul 7 17:10:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Walfred Tedeschi X-Patchwork-Id: 13698 Received: (qmail 124862 invoked by alias); 7 Jul 2016 17:10:39 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 124852 invoked by uid 89); 7 Jul 2016 17:10:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=*type, 2068, Hx-languages-length:1795, commercial X-HELO: mga04.intel.com Received: from mga04.intel.com (HELO mga04.intel.com) (192.55.52.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 07 Jul 2016 17:10:28 +0000 Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP; 07 Jul 2016 10:10:26 -0700 X-ExtLoop1: 1 Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga004.fm.intel.com with ESMTP; 07 Jul 2016 10:10:26 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.117]) by IRSMSX151.ger.corp.intel.com ([169.254.4.151]) with mapi id 14.03.0248.002; Thu, 7 Jul 2016 18:10:25 +0100 From: "Tedeschi, Walfred" To: "gdb-patches@sourceware.org" , "Sergio Durigan Junior (sergiodj@redhat.com)" CC: "Yao Qi (qiyaoltc@gmail.com)" , "Pedro Alves (palves@redhat.com)" Subject: [pushed] [obv] Fix broken build on Fedora 23. Date: Thu, 7 Jul 2016 17:10:24 +0000 Message-ID: MIME-Version: 1.0 X-IsSubscribed: yes https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=41c977aa5c81c04a9fea61bfe0b88e428a4b1839 commit 41c977aa5c81c04a9fea61bfe0b88e428a4b1839 Author: Walfred Tedeschi Date: Thu Jul 7 19:07:36 2016 +0200 [obv] Fix broken build on Fedora 23. Compiler complains about possible utilization of "symbol" which is member of lang_def. Initialization was added. 2016-07-07 Walfred Tedeschi gdb/ChangeLog: * cp-namespace.c (cp_lookup_bare_symbol): Initialize lang_this.symbol. Diff: --- gdb/ChangeLog | 5 +++++ gdb/cp-namespace.c | 2 ++ 2 files changed, 7 insertions(+) Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Christian Lamprechter Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928 diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d3e5ed..92c1337 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2016-07-07 Walfred Tedeschi + * cp-namespace.c (cp_lookup_bare_symbol): Initialize + lang_this.symbol. + +2016-07-07 Walfred Tedeschi + * cp-namespace.c (cp_lookup_bare_symbol): Use language passed as parameter to look for the symbol "this". diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index f34e383..0f1b452 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -206,6 +206,8 @@ cp_lookup_bare_symbol (const struct language_defn *langdef, struct block_symbol lang_this; struct type *type; + lang_this.symbol = NULL; + if (langdef != NULL) lang_this = lookup_language_this (langdef, block); Intel Deutschland GmbH