From 94dbc1213b90e78c011f1cf0ad16fcc3bc22af0b Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 25 Sep 1997 01:05:31 +0000 Subject: [PATCH] * 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. --- include/remote-sim.h | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/include/remote-sim.h b/include/remote-sim.h index 06e794df78..837f365578 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. -- 2.34.1