From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12285 invoked by alias); 5 Sep 2013 20:50: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 12273 invoked by uid 89); 5 Sep 2013 20:50:55 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Sep 2013 20:50:55 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.8 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com 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 r85Korok006898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 5 Sep 2013 16:50:53 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r85KopHZ020189 for ; Thu, 5 Sep 2013 16:50:52 -0400 Message-ID: <5228EEAB.3010905@redhat.com> Date: Thu, 05 Sep 2013 20:50:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: gdb-patches@sourceware.org Subject: Re: [PATCH 9/9] [gdbserver] Split a new hostio.h file out of server.h. References: <1378239999-15533-1-git-send-email-palves@redhat.com> <1378239999-15533-10-git-send-email-palves@redhat.com> In-Reply-To: <1378239999-15533-10-git-send-email-palves@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-09/txt/msg00188.txt.bz2 A couple other ports need to include hostio.h as well. ------------ [gdbserver] Split a new hostio.h file out of server.h. gdb/gdbserver/ 2013-09-05 Pedro Alves * server.h (handle_vFile, hostio_last_error_from_errno): Move to ... * hostio.h: ... this new file. * hostio.c, server.c, linux-low.c, nto-low.c, spu-low, win32-low.c: Include hostio.h. --- gdb/gdbserver/hostio.c | 1 + gdb/gdbserver/hostio.h | 28 ++++++++++++++++++++++++++++ gdb/gdbserver/linux-low.c | 1 + gdb/gdbserver/nto-low.c | 1 + gdb/gdbserver/server.c | 1 + gdb/gdbserver/server.h | 6 ------ gdb/gdbserver/spu-low.c | 1 + gdb/gdbserver/win32-low.c | 1 + 8 files changed, 34 insertions(+), 6 deletions(-) create mode 100644 gdb/gdbserver/hostio.h diff --git a/gdb/gdbserver/hostio.c b/gdb/gdbserver/hostio.c index a74c2f8..8edbadb 100644 --- a/gdb/gdbserver/hostio.c +++ b/gdb/gdbserver/hostio.c @@ -20,6 +20,7 @@ #include "server.h" #include "gdb/fileio.h" +#include "hostio.h" #include #include diff --git a/gdb/gdbserver/hostio.h b/gdb/gdbserver/hostio.h new file mode 100644 index 0000000..802374c --- /dev/null +++ b/gdb/gdbserver/hostio.h @@ -0,0 +1,28 @@ +/* Host file transfer support for gdbserver. + Copyright (C) 1993-2013 Free Software Foundation, Inc. + + This file is part of GDB. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ + +#ifndef HOSTIO_H +#define HOSTIO_H + +/* Functions from hostio.c. */ +extern int handle_vFile (char *, int, int *); + +/* Functions from hostio-errno.c. */ +extern void hostio_last_error_from_errno (char *own_buf); + +#endif /* HOSTIO_H */ diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 7c95058..799fcc9 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -46,6 +46,7 @@ #include #include "filestuff.h" #include "tracepoint.h" +#include "hostio.h" #ifndef ELFMAG0 /* Don't include here. If it got included by gdb_proc_service.h then ELFMAG0 will have been defined. If it didn't get included by diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index 3670133..6f764ff 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -21,6 +21,7 @@ #include "server.h" #include "gdbthread.h" #include "nto-low.h" +#include "hostio.h" #include #include diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 6ca7fe1..f4e1525 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -31,6 +31,7 @@ #include "filestuff.h" #include "tracepoint.h" #include "dll.h" +#include "hostio.h" /* The thread set with an `Hc' packet. `Hc' is deprecated in favor of `vCont'. Note the multi-process extensions made `vCont' a diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h index 53127bf..05724e0 100644 --- a/gdb/gdbserver/server.h +++ b/gdb/gdbserver/server.h @@ -144,12 +144,6 @@ typedef int gdb_fildes_t; extern int handle_serial_event (int err, gdb_client_data client_data); extern int handle_target_event (int err, gdb_client_data client_data); -/* Functions from hostio.c. */ -extern int handle_vFile (char *, int, int *); - -/* Functions from hostio-errno.c. */ -extern void hostio_last_error_from_errno (char *own_buf); - #include "remote-utils.h" #include "common-utils.h" diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index e604b9f..49b02a6 100644 --- a/gdb/gdbserver/spu-low.c +++ b/gdb/gdbserver/spu-low.c @@ -30,6 +30,7 @@ #include #include #include "filestuff.h" +#include "hostio.h" /* Some older glibc versions do not define this. */ #ifndef __WNOTHREAD diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index a32cea4..979eedd 100644 --- a/gdb/gdbserver/win32-low.c +++ b/gdb/gdbserver/win32-low.c @@ -26,6 +26,7 @@ #include "win32-low.h" #include "gdbthread.h" #include "dll.h" +#include "hostio.h" #include #include