diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-10-05 23:13:56 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-10-05 23:13:56 +0000 |
commit | 2acceee2182a942e6a79a972009540990f4dfabf (patch) | |
tree | 2ed7ca473f0b49181f1d0214c3450a7eb17f7bcb /gdb/target.h | |
parent | 3e9c42873ee1d0bbb03039baea78c617174f9269 (diff) | |
download | gdb-2acceee2182a942e6a79a972009540990f4dfabf.zip gdb-2acceee2182a942e6a79a972009540990f4dfabf.tar.gz gdb-2acceee2182a942e6a79a972009540990f4dfabf.tar.bz2 |
import gdb-1999-10-04 snapshot
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gdb/target.h b/gdb/target.h index 5439fac..276657f 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -264,6 +264,23 @@ struct target_waitstatus value; }; +/* Possible types of events that the inferior handler will have to + deal with. */ +enum inferior_event_type + { + /* There is a request to quit the inferior, abandon it. */ + INF_QUIT_REQ, + /* Process a normal inferior event which will result in target_wait + being called. */ + INF_REG_EVENT, + /* Deal with an error on the inferior. */ + INF_ERROR, + /* We are called because a timer went off. */ + INF_TIMER, + /* We are called to do stuff after the inferior stops. */ + INF_EXEC_COMPLETE + }; + /* Return the string for a signal. */ extern char *target_signal_to_string PARAMS ((enum target_signal)); @@ -404,7 +421,7 @@ struct target_ops /* ASYNC target controls */ int (*to_can_async_p) (void); int (*to_is_async_p) (void); - void (*to_async) (void (*cb) (int error, void *context, int fd), void *context); + void (*to_async) (void (*cb) (enum inferior_event_type, void *context), void *context); int to_magic; /* Need sub-structure for target machine related rather than comm related? */ }; |