mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
Wed Sep 20 08:16:03 1995 steve chamberlain <sac@slash.cygnus.com>
* defs.h (xmalloc, xrealloc): Delete, they're declared in libiberty.h. (GETENV_PROVIDED, FCLOSE_PROVIDED): New. * doc/gdbint.texinfo (GETENV_PROVIDED, FCLOSE_PROVIDED): Document. * remote-sim.[ch] (gdbsim_write_stdout): New.
This commit is contained in:
parent
b46805224b
commit
6b009ef680
14
gdb/defs.h
14
gdb/defs.h
@ -555,10 +555,6 @@ extern char *strsave PARAMS ((const char *));
|
|||||||
|
|
||||||
extern char *mstrsave PARAMS ((void *, const char *));
|
extern char *mstrsave PARAMS ((void *, const char *));
|
||||||
|
|
||||||
extern PTR xmalloc PARAMS ((long));
|
|
||||||
|
|
||||||
extern PTR xrealloc PARAMS ((PTR, long));
|
|
||||||
|
|
||||||
extern PTR xmmalloc PARAMS ((PTR, long));
|
extern PTR xmmalloc PARAMS ((PTR, long));
|
||||||
|
|
||||||
extern PTR xmrealloc PARAMS ((PTR, PTR, long));
|
extern PTR xmrealloc PARAMS ((PTR, PTR, long));
|
||||||
@ -616,7 +612,9 @@ extern void warning PARAMS ((char *, ...))
|
|||||||
Libiberty thingies are no longer declared here. We include libiberty.h
|
Libiberty thingies are no longer declared here. We include libiberty.h
|
||||||
above, instead. */
|
above, instead. */
|
||||||
|
|
||||||
|
#ifndef GETENV_PROVIDED
|
||||||
extern char *getenv PARAMS ((const char *));
|
extern char *getenv PARAMS ((const char *));
|
||||||
|
#endif
|
||||||
|
|
||||||
/* From other system libraries */
|
/* From other system libraries */
|
||||||
|
|
||||||
@ -625,7 +623,15 @@ extern char *getenv PARAMS ((const char *));
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* We take the address of fclose later, but some stdio's forget
|
||||||
|
to declare this. We can't always declare it since there's
|
||||||
|
no way to declare the parameters without upsetting some compiler
|
||||||
|
somewhere. */
|
||||||
|
|
||||||
|
#ifndef FCLOSE_PROVIDED
|
||||||
extern int fclose ();
|
extern int fclose ();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef atof
|
#ifndef atof
|
||||||
extern double atof ();
|
extern double atof ();
|
||||||
|
@ -95,6 +95,25 @@ int regno;
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
gdbsim_write_stdout (arg, len)
|
||||||
|
char *arg;
|
||||||
|
int len;
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
char b[2];
|
||||||
|
for (i = 0; i< len; i++) {
|
||||||
|
b[0] = arg[i];
|
||||||
|
b[1] = 0;
|
||||||
|
if (target_output_hook)
|
||||||
|
target_output_hook (b);
|
||||||
|
else
|
||||||
|
fputs_filtered (b, gdb_stdout);
|
||||||
|
}
|
||||||
|
return len;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gdbsim_store_register (regno)
|
gdbsim_store_register (regno)
|
||||||
int regno;
|
int regno;
|
||||||
|
@ -39,6 +39,7 @@ typedef CORE_ADDR_TYPE SIM_ADDR;
|
|||||||
void printf_filtered (char *msg, ...);
|
void printf_filtered (char *msg, ...);
|
||||||
void error /-* noreturn *-/ (char *msg, ...);
|
void error /-* noreturn *-/ (char *msg, ...);
|
||||||
void *xmalloc (long size);
|
void *xmalloc (long size);
|
||||||
|
int gdbsim_write_stdout (char *, int len);
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Main simulator entry points ...
|
/* Main simulator entry points ...
|
||||||
@ -123,4 +124,9 @@ void sim_resume PARAMS ((int step, int siggnal));
|
|||||||
|
|
||||||
void sim_do_command PARAMS ((char *cmd));
|
void sim_do_command PARAMS ((char *cmd));
|
||||||
|
|
||||||
|
|
||||||
|
/* Callbacks for the simulator to use. */
|
||||||
|
|
||||||
|
int gdbsim_write_stdout PARAMS ((char *, int));
|
||||||
|
|
||||||
#endif /* !defined (REMOTE_SIM_H) */
|
#endif /* !defined (REMOTE_SIM_H) */
|
||||||
|
Loading…
Reference in New Issue
Block a user