From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109569 invoked by alias); 19 Sep 2019 04:31: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 109433 invoked by uid 89); 19 Sep 2019 04:31:20 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=hows, how's, HX-Languages-Length:1305 X-HELO: mail-qt1-f201.google.com Received: from mail-qt1-f201.google.com (HELO mail-qt1-f201.google.com) (209.85.160.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Sep 2019 04:31:18 +0000 Received: by mail-qt1-f201.google.com with SMTP id r18so1312480qtt.0 for ; Wed, 18 Sep 2019 21:31:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=CrC50HaziBR6g/2ldEQLJH2MzI1exd0lPE6exKRz3ao=; b=VRTz9SZpq69+9CP8NZYYv2FVbVnsjXrfcBnW+9YwTTwm/ByV/0SnyB1F5hcR1qar87 bvjUYArar1Sb734Ci0/hgZkjZlL7bURgD7Dz0Wa5yOZKnxo6OSQRVyRorEONxvjMPL0R b4/HmA+69UIxVLSnOAw6sOT7ddHNwBLI4vL9KfcOa+LJoYgjHaxBD63LPsQnIhOEdU/0 Dz7Mxpr5XuHEI8KOtIsHU4LsL4FutNRevHQbGFPcTpyCpg3ABvzIAsY4AIUs4Kmtt4tX JOjg1hcm/cHa0+6V/lginpHNbJMSsIIFFYIF4ErIhfs8OHK7pn+flEKeWv2coJKAonJ5 yfVQ== Date: Thu, 19 Sep 2019 04:31:00 -0000 In-Reply-To: <1b863842-8eef-42ad-8955-a0071752de2a@simark.ca> Message-Id: <20190919043114.44137-1-cbiesinger@google.com> Mime-Version: 1.0 References: <1b863842-8eef-42ad-8955-a0071752de2a@simark.ca> Subject: [PATCH] Declare dwarf_always_disassemble in dwarf2read.h From: "Christian Biesinger via gdb-patches" Reply-To: Christian Biesinger To: gdb-patches@sourceware.org Cc: Christian Biesinger Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00358.txt.bz2 [Simon, how's this? Compiles fine.] And remove the declaration from dwarf2loc.c, for better typesafety. gdb/ChangeLog: 2019-09-19 Christian Biesinger * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble. * dwarf2read.h: Declare dwarf_always_disassemble. --- gdb/dwarf2loc.c | 2 -- gdb/dwarf2read.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 29fccae5944..c8ba0290a02 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -46,8 +46,6 @@ #include "gdbsupport/underlying.h" #include "gdbsupport/byte-vector.h" -extern bool dwarf_always_disassemble; - static struct value *dwarf2_evaluate_loc_desc_full (struct type *type, struct frame_info *frame, const gdb_byte *data, diff --git a/gdb/dwarf2read.h b/gdb/dwarf2read.h index 8939f97af53..e9b946247b0 100644 --- a/gdb/dwarf2read.h +++ b/gdb/dwarf2read.h @@ -33,6 +33,8 @@ extern struct cmd_list_element *show_dwarf_cmdlist; typedef struct dwarf2_per_cu_data *dwarf2_per_cu_ptr; DEF_VEC_P (dwarf2_per_cu_ptr); +extern bool dwarf_always_disassemble; + /* A descriptor for dwarf sections. S.ASECTION, SIZE are typically initialized when the objfile is first -- 2.23.0.351.gc4317032e6-goog