From: David O'Brien Date: Tue, 9 Jul 2002 17:20:23 +0000 (+0000) Subject: 2002-07-09 David O'Brien X-Git-Tag: gdb_5_2_1-2002-07-23-release~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a3ca7e45fcf475e6729271ac5126dc1aa8c3c9de;p=thirdparty%2Fbinutils-gdb.git 2002-07-09 David O'Brien Merge from mainline: * gdbserver/gdbreplay.c: Include needed system headers. (remote_open): Conditional strchr prototype. (perror_with_name, remote_close, remote_open, expect, play): Static. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9483a2af66d..437f27dbe92 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2002-07-09 David O'Brien + + Merge from mainline: + * gdbserver/gdbreplay.c: Include needed system headers. + (remote_open): Conditional strchr prototype. + (perror_with_name, remote_close, remote_open, expect, play): Static. + 2002-07-09 Michal Ludvig * NEWS: Note about dwarf2cfi improvements. diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c index dce4079e3f1..8c57906ea07 100644 --- a/gdb/gdbserver/gdbreplay.c +++ b/gdb/gdbserver/gdbreplay.c @@ -31,6 +31,16 @@ #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) @@ -40,7 +50,7 @@ static int remote_desc; 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 @@ -71,7 +81,7 @@ sync_error (FILE *fp, char *desc, int expect, int got) exit (1); } -void +static void remote_close (void) { close (remote_desc); @@ -80,10 +90,12 @@ remote_close (void) /* Open a connection to a remote debugger. NAME is the filename used for communication. */ -void +static void remote_open (char *name) { +#ifndef HAVE_STRING_H extern char *strchr (); +#endif if (!strchr (name, ':')) { @@ -230,7 +242,7 @@ logchar (FILE *fp) /* 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; @@ -261,7 +273,7 @@ expect (FILE *fp) /* 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;