diff options
author | Jason Molenda <jmolenda@apple.com> | 1999-09-28 21:55:21 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1999-09-28 21:55:21 +0000 |
commit | 6426a772a2645ef6afa596319dba0ff966bff050 (patch) | |
tree | 315b42018fc08aad8fc85d0833b1ed983d747de8 /gdb/target.h | |
parent | f4bda9848fb4c4ae3e4cccba77d5ef26099e451e (diff) | |
download | gdb-6426a772a2645ef6afa596319dba0ff966bff050.zip gdb-6426a772a2645ef6afa596319dba0ff966bff050.tar.gz gdb-6426a772a2645ef6afa596319dba0ff966bff050.tar.bz2 |
import gdb-1999-09-28 snapshot
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/gdb/target.h b/gdb/target.h index e038802..5439fac 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -397,11 +397,14 @@ struct target_ops int to_has_registers; int to_has_execution; int to_has_thread_control; /* control thread execution */ - int to_has_async_exec; struct section_table *to_sections; struct section_table *to_sections_end; + /* 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); int to_magic; /* Need sub-structure for target machine related rather than comm related? */ }; @@ -1009,9 +1012,14 @@ print_section_info PARAMS ((struct target_ops *, bfd *)); #define target_can_switch_threads \ (current_target.to_has_thread_control & tc_switch) -/* Does the target support asynchronous execution? */ -#define target_has_async \ - (current_target.to_has_async_exec) +/* Can the target support asynchronous execution? */ +#define target_can_async_p() (current_target.to_can_async_p ()) + +/* Is the target in asynchronous execution mode? */ +#define target_is_async_p() (current_target.to_is_async_p()) + +/* Put the target in async mode with the specified callback function. */ +#define target_async(CALLBACK,CONTEXT) (current_target.to_async((CALLBACK), (CONTEXT))) extern void target_link PARAMS ((char *, CORE_ADDR *)); @@ -1266,6 +1274,9 @@ extern struct target_ops *find_run_target PARAMS ((void)); extern struct target_ops * find_core_target PARAMS ((void)); + +int +target_resize_to_sections PARAMS ((struct target_ops *target, int num_added)); /* Stuff that should be shared among the various remote targets. */ |