From patchwork Mon Aug 11 15:17:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 2363 Received: (qmail 2440 invoked by alias); 11 Aug 2014 15:18:13 -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 2416 invoked by uid 89); 11 Aug 2014 15:18:12 -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, RP_MATCHES_RCVD, SPF_HELO_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 11 Aug 2014 15:18:11 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7BFI8sj026308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 11 Aug 2014 11:18:09 -0400 Received: from blade.nx (ovpn-116-99.ams2.redhat.com [10.36.116.99]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7BFI7CR011221; Mon, 11 Aug 2014 11:18:08 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id 3E1272640EA; Mon, 11 Aug 2014 16:18:07 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Cc: Doug Evans , Pedro Alves Subject: [PATCH 3/4 v6] Move print-utils.h to common-defs.h Date: Mon, 11 Aug 2014 16:17:34 +0100 Message-Id: <1407770255-2589-4-git-send-email-gbenson@redhat.com> In-Reply-To: <1407770255-2589-1-git-send-email-gbenson@redhat.com> References: <1407770255-2589-1-git-send-email-gbenson@redhat.com> X-IsSubscribed: yes This commit moves the inclusion of print-utils.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-11 Gary Benson * common/common-defs.h: Include print-utils.h. * utils.h: Do not include print-utils.h. gdb/gdbserver/ 2014-08-11 Gary Benson * utils.h: Do not include print-utils.h. --- gdb/ChangeLog | 5 +++++ gdb/common/common-defs.h | 1 + gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/utils.h | 2 -- gdb/utils.h | 1 - 5 files changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 5543e4c..66c0d21 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -43,5 +43,6 @@ #include "gdb_assert.h" #include "errors.h" #include "common-types.h" +#include "print-utils.h" #endif /* COMMON_DEFS_H */ diff --git a/gdb/gdbserver/utils.h b/gdb/gdbserver/utils.h index a994f38..cdd80df 100644 --- a/gdb/gdbserver/utils.h +++ b/gdb/gdbserver/utils.h @@ -19,8 +19,6 @@ #ifndef UTILS_H #define UTILS_H -#include "print-utils.h" - void fatal (const char *string,...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); char *paddress (CORE_ADDR addr); char *pfildes (gdb_fildes_t fd); diff --git a/gdb/utils.h b/gdb/utils.h index 18a95a7..57a1c0f 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -23,7 +23,6 @@ #include "cleanups.h" #include "exceptions.h" -#include "print-utils.h" extern void initialize_utils (void);