diff options
author | David Edelsohn <dje.gcc@gmail.com> | 1997-04-02 23:24:25 +0000 |
---|---|---|
committer | David Edelsohn <dje.gcc@gmail.com> | 1997-04-02 23:24:25 +0000 |
commit | b0d8c28f61d8bd35c570965dd30f1dbe478151bd (patch) | |
tree | b46afa9877f3e2f9e6e9dbfac9fa9849f51e5b37 /include | |
parent | fbda74b1c1b2c09f17378dea65d0112f9f9141f7 (diff) | |
download | gdb-b0d8c28f61d8bd35c570965dd30f1dbe478151bd.zip gdb-b0d8c28f61d8bd35c570965dd30f1dbe478151bd.tar.gz gdb-b0d8c28f61d8bd35c570965dd30f1dbe478151bd.tar.bz2 |
* remote-sim.h (SIM_OPEN_KIND, SIM_RC): New enums.
(sim_open): New argument `kind'.
Diffstat (limited to 'include')
-rw-r--r-- | include/remote-sim.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/include/remote-sim.h b/include/remote-sim.h index 49beb80..98f7b41 100644 --- a/include/remote-sim.h +++ b/include/remote-sim.h @@ -38,6 +38,18 @@ typedef CORE_ADDR_TYPE SIM_ADDR; typedef struct sim_state *SIM_DESC; +/* Values for `kind' arg to sim_open. */ +typedef enum { + SIM_OPEN_STANDALONE, /* simulator used standalone (run.c) */ + SIM_OPEN_DEBUG /* simulator used by debugger (gdb) */ +} SIM_OPEN_KIND; + +/* Return codes from various functions. */ +typedef enum { + SIM_RC_FAIL = 0, + SIM_RC_OK = 1 +} SIM_RC; + /* Main simulator entry points. */ /* Initialize the simulator. This function is called when the simulator @@ -48,7 +60,7 @@ typedef struct sim_state *SIM_DESC; The result is a descriptor that must be passed back to the other sim_foo functions. */ -SIM_DESC sim_open PARAMS ((char **argv)); +SIM_DESC sim_open PARAMS ((SIM_OPEN_KIND kind, char **argv)); /* Terminate usage of the simulator. This may involve freeing target memory and closing any open files and mmap'd areas. You cannot assume sim_kill |