diff options
author | Stu Grossman <grossman@cygnus> | 1997-09-25 01:05:31 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1997-09-25 01:05:31 +0000 |
commit | 94dbc1213b90e78c011f1cf0ad16fcc3bc22af0b (patch) | |
tree | 3d7e8a4c54e0b917b419c50dcb1ebe88e10a587a /include | |
parent | b9d580a4b05c1cb882a9fbcf11ffd3baa16b291f (diff) | |
download | gdb-94dbc1213b90e78c011f1cf0ad16fcc3bc22af0b.zip gdb-94dbc1213b90e78c011f1cf0ad16fcc3bc22af0b.tar.gz gdb-94dbc1213b90e78c011f1cf0ad16fcc3bc22af0b.tar.bz2 |
* remote-sim.h (SIM_RC): Add a bunch of new return codes for
breakpoint stuff.
* Add functions to tell the simulator to set/clear/enable/disable
intrinsic breakpoints.
Diffstat (limited to 'include')
-rw-r--r-- | include/remote-sim.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/remote-sim.h b/include/remote-sim.h index 06e794d..837f365 100644 --- a/include/remote-sim.h +++ b/include/remote-sim.h @@ -52,7 +52,10 @@ typedef enum { typedef enum { SIM_RC_FAIL = 0, - SIM_RC_OK = 1 + SIM_RC_OK = 1, + SIM_RC_UNKNOWN_BREAKPOINT = 2, + SIM_RC_INSUFFICIENT_RESOURCES = 3, + SIM_RC_DUPLICATE_BREAKPOINT = 4 } SIM_RC; @@ -220,6 +223,19 @@ void sim_stop_reason PARAMS ((SIM_DESC sd, enum sim_stop *reason, int *sigrc)); or empty CMD. */ void sim_do_command PARAMS ((SIM_DESC sd, char *cmd)); + +/* Call these functions to set and clear breakpoints at ADDR. */ + +SIM_RC sim_set_breakpoint PARAMS ((SIM_DESC sd, SIM_ADDR addr)); +SIM_RC sim_clear_breakpoint PARAMS ((SIM_DESC sd, SIM_ADDR addr)); +SIM_RC sim_clear_all_breakpoints PARAMS ((SIM_DESC sd)); + +/* These functions are used to enable and disable breakpoints. */ + +SIM_RC sim_enable_breakpoint PARAMS ((SIM_DESC sd, SIM_ADDR addr)); +SIM_RC sim_disable_breakpoint PARAMS ((SIM_DESC sd, SIM_ADDR addr)); +SIM_RC sim_enable_all_breakpoints PARAMS ((SIM_DESC sd)); +SIM_RC sim_disable_all_breakpoints PARAMS ((SIM_DESC sd)); /* Provide simulator with a default (global) host_callback_struct. |