From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23011 invoked by alias); 19 Sep 2019 04:42:55 -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 23003 invoked by uid 89); 19 Sep 2019 04:42:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.9 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=sk:overloa, H*MI:google X-HELO: mail-yb1-f201.google.com Received: from mail-yb1-f201.google.com (HELO mail-yb1-f201.google.com) (209.85.219.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 19 Sep 2019 04:42:53 +0000 Received: by mail-yb1-f201.google.com with SMTP id s2so1381685ybq.23 for ; Wed, 18 Sep 2019 21:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=wzM1VNIPv3lAzKCm2X3FG5Qp4dGaJItF9qIHIn4azl0=; b=Rpy8H7BBQGmNWSD8aiFD0rZ8MoN/AxU0lA1oLu6fQPUVI0PqYYJEkpO52x53cWKddZ CGXDr2GbUi6PrmOQmGH7FpJirKxilOzwb0rpCMxK/QRnUystbyBG/xVsCHOdUlad/Xut 0VsqhjVRoZCsxepK9hjbyNCfl6Wo/RVm2bFlKLmZag6nxWzute6NjeI7q/DPma+XO9ZF GVQ8LfSE21NYA9Vd0dJ9QNkvSDWRO9OxW8j/bUkiec8M0idP0EScyTMSRPvglUQgT2pI vLISXbTpmzvrUqp0VoOeWBo1XSLiYUAfgG3It1Sq2VEGTdWuRClDv9ZTsGFCUjvLtGRE d3Cw== Date: Thu, 19 Sep 2019 04:42:00 -0000 Message-Id: <20190919044248.47444-1-cbiesinger@google.com> Mime-Version: 1.0 Subject: [PATCH] Move declaration of overload_resolution to value.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/msg00360.txt.bz2 The variable is defined in valops.c and has an extern decl in eval.c; move it to the header file. gdb/ChangeLog: 2019-09-19 Christian Biesinger * eval.c: Move declaration of overload_resolution to... * value.h: ...here. --- gdb/eval.c | 3 --- gdb/value.h | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gdb/eval.c b/gdb/eval.c index f8915b99578..70ba1f1e3fc 100644 --- a/gdb/eval.c +++ b/gdb/eval.c @@ -42,9 +42,6 @@ #include "typeprint.h" #include -/* This is defined in valops.c */ -extern bool overload_resolution; - /* Prototypes for local functions. */ static struct value *evaluate_subexp_for_sizeof (struct expression *, int *, diff --git a/gdb/value.h b/gdb/value.h index 47bf672eb5d..0d75eaa5b21 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -81,6 +81,8 @@ struct value_print_options; value_contents_eq for more info. */ +extern bool overload_resolution; + /* The structure which defines the type of a value. It should never be possible for a program lval value to survive over a call to the inferior (i.e. to be put into the history list or an internal -- 2.23.0.351.gc4317032e6-goog