From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26113 invoked by alias); 9 Jul 2002 17:25:42 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26106 invoked from network); 9 Jul 2002 17:25:41 -0000 Received: from unknown (HELO dragon.nuxi.com) (66.92.13.169) by sources.redhat.com with SMTP; 9 Jul 2002 17:25:41 -0000 Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.5/8.12.2) with ESMTP id g69HPfoi026520 for ; Tue, 9 Jul 2002 10:25:41 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.5/8.12.5/Submit) id g69HPfGC026519 for gdb-patches@sources.redhat.com; Tue, 9 Jul 2002 10:25:41 -0700 (PDT) Date: Tue, 09 Jul 2002 10:33:00 -0000 From: "David O'Brien" To: gdb-patches@sources.redhat.com Subject: [PATCH] gdbreplay.c Message-ID: <20020709172541.GA26506@dragon.nuxi.com> Reply-To: obrien@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 X-SW-Source: 2002-07/txt/msg00155.txt.bz2 I'd like to commit this change. This seems more proper for the includes includes, and the staticization is needed to quiet GCC at high warning levels. Index: gdbreplay.c =================================================================== RCS file: /cvs/src/src/gdb/gdbserver/gdbreplay.c,v retrieving revision 1.6 diff -u -r1.6 gdbreplay.c --- gdbreplay.c 9 Apr 2002 21:11:35 -0000 1.6 +++ gdbreplay.c 9 Jul 2002 17:23:26 -0000 @@ -30,12 +30,16 @@ #include #include #include -#include -#include +#ifdef HAVE_STDLIB_H +#include +#endif #ifdef HAVE_STRING_H #include #endif +#ifdef HAVE_UNISTD_H +#include +#endif /* Sort of a hack... */ #define EOL (EOF - 1) @@ -46,7 +50,7 @@ as the file name for which the error was encountered. Then return to command level. */ -void +static void perror_with_name (char *string) { #ifndef STDC_HEADERS @@ -77,7 +81,7 @@ exit (1); } -void +static void remote_close (void) { close (remote_desc); @@ -86,7 +90,7 @@ /* Open a connection to a remote debugger. NAME is the filename used for communication. */ -void +static void remote_open (char *name) { if (!strchr (name, ':')) @@ -234,7 +238,7 @@ /* Accept input from gdb and match with chars from fp (after skipping one blank) up until a \n is read from fp (which is not matched) */ -void +static void expect (FILE *fp) { int fromlog; @@ -265,7 +269,7 @@ /* Play data back to gdb from fp (after skipping leading blank) up until a \n is read from fp (which is discarded and not sent to gdb). */ -void +static void play (FILE *fp) { int fromlog;