From patchwork Wed Aug 13 09:56:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Benson X-Patchwork-Id: 2379 Received: (qmail 27167 invoked by alias); 13 Aug 2014 09:56:30 -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 27137 invoked by uid 89); 13 Aug 2014 09:56:29 -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, SPF_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; Wed, 13 Aug 2014 09:56:28 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7D9uQel017720 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 13 Aug 2014 05:56:26 -0400 Received: from blade.nx (ovpn-116-116.ams2.redhat.com [10.36.116.116]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s7D9uPrA000813; Wed, 13 Aug 2014 05:56:25 -0400 Received: from blade.nx (localhost [127.0.0.1]) by blade.nx (Postfix) with ESMTP id E1B3D2640EA; Wed, 13 Aug 2014 10:56:24 +0100 (BST) From: Gary Benson To: gdb-patches@sourceware.org Cc: Doug Evans , Pedro Alves Subject: [PATCH 3/5 v7] Move print-utils.h to common-defs.h Date: Wed, 13 Aug 2014 10:56:17 +0100 Message-Id: <1407923779-22149-4-git-send-email-gbenson@redhat.com> In-Reply-To: <1407923779-22149-1-git-send-email-gbenson@redhat.com> References: <1407923779-22149-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-13 Gary Benson * common/common-defs.h: Include print-utils.h. * utils.h: Do not include print-utils.h. gdb/gdbserver/ 2014-08-13 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);