From 8f2d2d61faa4346aebd451e29397e8da1af95f04 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Thu, 13 Mar 1997 21:12:22 +0000 Subject: [PATCH] Add some more comments. --- gdb/remote-sim.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/gdb/remote-sim.h b/gdb/remote-sim.h index ddaa7185e2f..49beb80ac1b 100644 --- a/gdb/remote-sim.h +++ b/gdb/remote-sim.h @@ -43,7 +43,10 @@ typedef struct sim_state *SIM_DESC; /* Initialize the simulator. This function is called when the simulator is selected from the command line. ARGV is passed from the command line and can be used to select whatever run time options the simulator provides. - ARGV is the standard NULL terminated array of pointers. */ + ARGV is the standard NULL terminated array of pointers, with argv[0] + being the program name. + The result is a descriptor that must be passed back to the other sim_foo + functions. */ SIM_DESC sim_open PARAMS ((char **argv)); @@ -111,11 +114,15 @@ void sim_stop_reason PARAMS ((SIM_DESC sd, enum sim_stop *reason, int *sigrc)); void sim_resume PARAMS ((SIM_DESC sd, int step, int siggnal)); -/* Passthru for other commands that the simulator might support. */ +/* Passthru for other commands that the simulator might support. + If SD is NULL, the command is to be interpreted as refering to + the global state, however the simulator defines that. */ void sim_do_command PARAMS ((SIM_DESC sd, char *cmd)); -/* Provide simulator with a standard host_callback_struct. */ +/* Provide simulator with a standard host_callback_struct. + If SD is NULL, the command is to be interpreted as refering to + the global state, however the simulator defines that. */ void sim_set_callbacks PARAMS ((SIM_DESC sd, struct host_callback_struct *)); -- 2.30.2