From patchwork Sun Feb 24 16:51:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 31575 Received: (qmail 113629 invoked by alias); 24 Feb 2019 16:52:00 -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 113483 invoked by uid 89); 24 Feb 2019 16:51:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=UD:signal.h, signalh, signal.h X-HELO: gateway24.websitewelcome.com Received: from gateway24.websitewelcome.com (HELO gateway24.websitewelcome.com) (192.185.51.56) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 24 Feb 2019 16:51:57 +0000 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 6836946274 for ; Sun, 24 Feb 2019 10:51:56 -0600 (CST) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id xx0OgGo8j2PzOxx0OgiCvc; Sun, 24 Feb 2019 10:51:56 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+bZ1MGAzqm4dWx3wy6h8I0VM3bCIYhLqz8uDJofJcMU=; b=NSiyUgT2USp+lxswoODRjgIIuR vRaigSajJp5IF8dXN3g39+BBkNqaikWD9ttgZMkHRPdI4ojNM7CWuzuC5Cx7d7e/2NeW05NTIhV4W R/mEZB4SWNNQzsIYzxRZ5aTk4; Received: from 75-166-72-210.hlrn.qwest.net ([75.166.72.210]:44502 helo=bapiya.Home) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1gxx0O-001AKk-50; Sun, 24 Feb 2019 10:51:56 -0600 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [RFC 04/17] Move gdb_select.h to common/ Date: Sun, 24 Feb 2019 09:51:40 -0700 Message-Id: <20190224165153.5062-5-tom@tromey.com> In-Reply-To: <20190224165153.5062-1-tom@tromey.com> References: <20190224165153.5062-1-tom@tromey.com> This moves gdb_select.h to common/, so it can be used by other common code. gdb/ChangeLog 2019-02-24 Tom Tromey * common/gdb_select.h: Move from... * gdb_select.h: ... here. * event-loop.c: Update include path. * top.c: Update include path. * ser-base.c: Update include path. * ui-file.c: Update include path. * ser-tcp.c: Update include path. * guile/scm-ports.c: Update include path. * posix-hdep.c: Update include path. * ser-unix.c: Update include path. * gdb_usleep.c: Update include path. * mingw-hdep.c: Update include path. * inflow.c: Update include path. * event-top.c: Update include path. --- gdb/ChangeLog | 17 +++++++++++++++++ gdb/{ => common}/gdb_select.h | 0 gdb/event-loop.c | 2 +- gdb/event-top.c | 2 +- gdb/gdb_usleep.c | 2 +- gdb/guile/scm-ports.c | 2 +- gdb/inflow.c | 2 +- gdb/mingw-hdep.c | 2 +- gdb/posix-hdep.c | 2 +- gdb/ser-base.c | 2 +- gdb/ser-tcp.c | 2 +- gdb/ser-unix.c | 2 +- gdb/top.c | 2 +- gdb/ui-file.c | 2 +- 14 files changed, 29 insertions(+), 12 deletions(-) rename gdb/{ => common}/gdb_select.h (100%) diff --git a/gdb/gdb_select.h b/gdb/common/gdb_select.h similarity index 100% rename from gdb/gdb_select.h rename to gdb/common/gdb_select.h diff --git a/gdb/event-loop.c b/gdb/event-loop.c index f41094e9add..41ac5802703 100644 --- a/gdb/event-loop.c +++ b/gdb/event-loop.c @@ -31,7 +31,7 @@ #include #include "common/gdb_sys_time.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "top.h" /* Tell create_file_handler what events we are interested in. diff --git a/gdb/event-top.c b/gdb/event-top.c index fb5d51c6e10..0cc144d397c 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -39,7 +39,7 @@ #include "maint.h" #include "common/buffer.h" #include "ser-event.h" -#include "gdb_select.h" +#include "common/gdb_select.h" /* readline include files. */ #include "readline/readline.h" diff --git a/gdb/gdb_usleep.c b/gdb/gdb_usleep.c index 25cc8e1b16c..0dcba0e6fad 100644 --- a/gdb/gdb_usleep.c +++ b/gdb/gdb_usleep.c @@ -17,7 +17,7 @@ #include "defs.h" #include "gdb_usleep.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "common/gdb_sys_time.h" int diff --git a/gdb/guile/scm-ports.c b/gdb/guile/scm-ports.c index 2950b1e39ec..62596966d40 100644 --- a/gdb/guile/scm-ports.c +++ b/gdb/guile/scm-ports.c @@ -22,7 +22,7 @@ conventions, et.al. */ #include "defs.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "top.h" #include "target.h" #include "guile-internal.h" diff --git a/gdb/inflow.c b/gdb/inflow.c index b71511308b3..8d8284fbea8 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -27,7 +27,7 @@ #include "observable.h" #include #include -#include "gdb_select.h" +#include "common/gdb_select.h" #include "inflow.h" #include "gdbcmd.h" diff --git a/gdb/mingw-hdep.c b/gdb/mingw-hdep.c index 1a4b93bb8e8..2fa82d1d484 100644 --- a/gdb/mingw-hdep.c +++ b/gdb/mingw-hdep.c @@ -22,7 +22,7 @@ #include "serial.h" #include "event-loop.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "readline/readline.h" #include diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c index 7911bc55055..97fd9b535a6 100644 --- a/gdb/posix-hdep.c +++ b/gdb/posix-hdep.c @@ -20,7 +20,7 @@ #include "defs.h" #include "event-loop.h" -#include "gdb_select.h" +#include "common/gdb_select.h" /* Wrapper for select. Nothing special needed on POSIX platforms. */ diff --git a/gdb/ser-base.c b/gdb/ser-base.c index 683d3f42528..6411ad7b2f7 100644 --- a/gdb/ser-base.c +++ b/gdb/ser-base.c @@ -22,7 +22,7 @@ #include "ser-base.h" #include "event-loop.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "common/gdb_sys_time.h" #ifdef USE_WIN32API #include diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index f484e59f196..7a459b38596 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -59,7 +59,7 @@ #endif #include -#include "gdb_select.h" +#include "common/gdb_select.h" #include #ifndef HAVE_SOCKLEN_T diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c index 5a9965bf744..8f3579bd642 100644 --- a/gdb/ser-unix.c +++ b/gdb/ser-unix.c @@ -28,7 +28,7 @@ #include #include "common/gdb_sys_time.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "gdbcmd.h" #include "common/filestuff.h" #include diff --git a/gdb/top.c b/gdb/top.c index 22e6f7e29ab..91989609c07 100644 --- a/gdb/top.c +++ b/gdb/top.c @@ -51,7 +51,7 @@ #include "filenames.h" #include "frame.h" #include "common/buffer.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "common/scope-exit.h" /* readline include files. */ diff --git a/gdb/ui-file.c b/gdb/ui-file.c index 690fc62ed6d..6367c686504 100644 --- a/gdb/ui-file.c +++ b/gdb/ui-file.c @@ -22,7 +22,7 @@ #include "defs.h" #include "ui-file.h" #include "gdb_obstack.h" -#include "gdb_select.h" +#include "common/gdb_select.h" #include "common/filestuff.h" null_file null_stream;