diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1996-12-09 02:06:42 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1996-12-09 02:06:42 +0000 |
commit | 163a75afdb6b998ab0aeb4eca6017ad4a8e5f0c9 (patch) | |
tree | 06b385c3eb062bb8eee0cc0cff6c13e92bd79cbe /gdb/remote-sim.h | |
parent | e1144153325b53ae84cb9e1b5ac21e1a632d9fc3 (diff) | |
download | gdb-163a75afdb6b998ab0aeb4eca6017ad4a8e5f0c9.zip gdb-163a75afdb6b998ab0aeb4eca6017ad4a8e5f0c9.tar.gz gdb-163a75afdb6b998ab0aeb4eca6017ad4a8e5f0c9.tar.bz2 |
* remote-sim.h: Update some comments.
* remote-sim.c (gdb_os_error): New function.
(init_callbacks): Fix initializing of gdb_callback. Add gdb_os_error.
(gdb_os_printf_filtered): Use gdb_stdout, not stdout.
Diffstat (limited to 'gdb/remote-sim.h')
-rw-r--r-- | gdb/remote-sim.h | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/gdb/remote-sim.h b/gdb/remote-sim.h index 1281e70..77d5432 100644 --- a/gdb/remote-sim.h +++ b/gdb/remote-sim.h @@ -1,5 +1,5 @@ /* This file defines the interface between the simulator and gdb. - Copyright (C) 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1996 Free Software Foundation, Inc. This file is part of GDB. @@ -32,28 +32,15 @@ typedef unsigned int SIM_ADDR; typedef CORE_ADDR_TYPE SIM_ADDR; #endif -/* Callbacks. - The simulator may use the following callbacks (gdb routines) which the - standalone program must provide. - - void error /-* noreturn *-/ (char *msg, ...); - void *xmalloc (long size); - - I/O is done by using a pointer provided by GDB via the sim_set_callbacks - call, look in callbacks.c to see what can be done. -*/ - -/* Main simulator entry points ... - - All functions that can get an error must call the gdb routine `error', - they can only return upon success. */ +/* Main simulator entry points. */ /* Initialize the simulator. This function is called when the simulator - is selected from the command line. ARGS is passed from the command line + is selected from the command line. ARGS is passed from the command line and can be used to select whatever run time options the simulator provides. ARGS is the raw character string and must be parsed by the simulator, - which is trivial to do with the buildargv function in libiberty. - It is ok to do nothing. */ + which is trivial to do with the buildargv function in libiberty. */ +/* FIXME: Eventually create a STATE and return its address and pass it to + all other main entry points. */ void sim_open PARAMS ((char *args)); |