From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8437 invoked by alias); 11 Feb 2014 09:26:20 -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 8426 invoked by uid 89); 11 Feb 2014 09:26:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mga11.intel.com Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Feb 2014 09:26:19 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 11 Feb 2014 01:26:18 -0800 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 11 Feb 2014 01:26:17 -0800 Received: from ullecvh004g04.iul.intel.com (ullecvh004g04.iul.intel.com [172.28.50.14]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s1B9QGNo001015; Tue, 11 Feb 2014 09:26:16 GMT Received: from ullecvh004g04.iul.intel.com (ullecvh004g04.iul.intel.com [127.0.0.1]) by ullecvh004g04.iul.intel.com (8.13.8/8.13.8) with ESMTP id s1B9QGJF021277; Tue, 11 Feb 2014 10:26:16 +0100 Received: (from sagovic@localhost) by ullecvh004g04.iul.intel.com (8.13.8/8.13.8/Submit) id s1B9QFIX021276; Tue, 11 Feb 2014 10:26:15 +0100 From: Sanimir Agovic To: sandra@codesourcery.com, yao@codesourcery.com Cc: gdb-patches@sourceware.org Subject: [PATCH 0/2] add calls to frame_base_set_default Date: Tue, 11 Feb 2014 09:26:00 -0000 Message-Id: <1392110775-21242-1-git-send-email-sanimir.agovic@intel.com> X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00342.txt.bz2 Hello, while removing declared but not referenced variables I came across of two findings: nios2-tdep.c(1350): static const struct frame_base nios2_stub_frame_base tic6x-tdep.c(485): static const struct frame_base tic6x_frame_base Both are declared but not referenced. Instead of removing, I added a call to frame_base_set_default in the appropriated *_gdbarch_init function and passed the frame_base structure. Build with --enable-targets=all, but I could not test my change on actual hardware. Looking back at the history it seems that these mentioned variables have never been used. So removing them might be an alternative to this patch. Sanimir Agovic (2): nios2-tdep: set default frame base tic6x-tdep: set default frame base gdb/nios2-tdep.c | 1 + gdb/tic6x-tdep.c | 1 + 2 files changed, 2 insertions(+) -- 1.8.4.2