From patchwork Mon Oct 7 19:42:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Terekhov, Mikhail via Gdb-patches" X-Patchwork-Id: 34857 Received: (qmail 68477 invoked by alias); 7 Oct 2019 19:42:32 -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 68427 invoked by uid 89); 7 Oct 2019 19:42:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.5 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=H*MI:google X-HELO: mail-yw1-f74.google.com Received: from mail-yw1-f74.google.com (HELO mail-yw1-f74.google.com) (209.85.161.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 07 Oct 2019 19:42:30 +0000 Received: by mail-yw1-f74.google.com with SMTP id o14so13404869ywa.9 for ; Mon, 07 Oct 2019 12:42:29 -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=Dk85R0Pzp6oW4rk8fDE5MkTwLqK7PYJrSRpd7zCHIug=; b=X0rclTqkV117NNkH9GjL715ub3zOcKlznbMk9lpCl6jsFCD6z6uz7aXe/hyjywJ/IA Z/6rLbYD8yk/wxoMgQGu62AH04eBPOsNSEfYVrpltsyxhahe73qa8+DajrbBVvHBaCOD 7y57SAw0kyY9cTiAu1k4zfzzHc5Ayolt+KKuabxReKbb6Blqlmsv5I9egA70euoIJ1lK um89BEoCJgC3l6+gcUPWuYSsG1CAbCty4/PmsPiCORLaVNqzgzE0CxBYeC8LaV/HXq7q 8LI7ssNKC60naJyDbGyCfBCTwLkj+m7WCXczhTLRpIBp07oeu3o/mXqN8GVKQF23FYfQ zEDg== Date: Mon, 7 Oct 2019 14:42:26 -0500 Message-Id: <20191007194226.69885-1-cbiesinger@google.com> Mime-Version: 1.0 Subject: [PATCH] Move declaration of overload_debug to header X-Patchwork-Original-From: "Christian Biesinger via gdb-patches" From: "Terekhov, Mikhail via Gdb-patches" Reply-To: Christian Biesinger To: gdb-patches@sourceware.org Cc: Christian Biesinger X-IsSubscribed: yes gdb/ChangeLog: 2019-10-07 Christian Biesinger * gdbtypes.c (overload_debug): Move comment to header. * gdbtypes.h (overload_debug): Declare. * valops.c: Remove declaration of overload_debug, instead include gdbtypes.h. --- gdb/gdbtypes.c | 3 +-- gdb/gdbtypes.h | 5 +++++ gdb/valops.c | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index afda89e43f..a2b81c8690 100644 --- a/gdb/gdbtypes.c +++ b/gdb/gdbtypes.c @@ -118,8 +118,7 @@ const struct floatformat *floatformats_ibm_long_double[BFD_ENDIAN_UNKNOWN] = { static bool opaque_type_resolution = true; -/* A flag to enable printing of debugging information of C++ - overloading. */ +/* See gdbtypes.h. */ unsigned int overload_debug = 0; diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index c62b8a31ba..d431cb6fdd 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -2146,4 +2146,9 @@ extern int type_not_allocated (const struct type *type); extern int type_not_associated (const struct type *type); +/* A flag to enable printing of debugging information of C++ + overloading. */ + +extern unsigned int overload_debug; + #endif /* GDBTYPES_H */ diff --git a/gdb/valops.c b/gdb/valops.c index fc7a4c5918..4c8efd90fb 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -39,9 +39,9 @@ #include "observable.h" #include "objfiles.h" #include "extension.h" +#include "gdbtypes.h" #include "gdbsupport/byte-vector.h" -extern unsigned int overload_debug; /* Local functions. */ static int typecmp (int staticp, int varargs, int nargs,