diff options
author | Fernando Nasser <fnasser@redhat.com> | 1999-01-15 17:30:25 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 1999-01-15 17:30:25 +0000 |
commit | 7269d43e106ea7ff25cb60fe253ae17db78d8c07 (patch) | |
tree | b29bf527b7f48dd3793ecf6a99ba96bd3b8de164 /gdb/target.h | |
parent | a68e7120b11f384e80b0329653f5d9b87a1084b9 (diff) | |
download | gdb-7269d43e106ea7ff25cb60fe253ae17db78d8c07.zip gdb-7269d43e106ea7ff25cb60fe253ae17db78d8c07.tar.gz gdb-7269d43e106ea7ff25cb60fe253ae17db78d8c07.tar.bz2 |
1999-01-15 Fernando Nasser <fnasser@totem.to.cygnus.com>
* target.h: added entry for target queries (to_query)
target.c: ditto.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index c9d6b6e..7f6a2c5 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -355,6 +355,7 @@ struct target_ops void (*to_notice_signals) PARAMS ((int pid)); int (*to_thread_alive) PARAMS ((int pid)); void (*to_stop) PARAMS ((void)); + int (*to_query) PARAMS ((char, char *, char *, int *)); struct symtab_and_line * (*to_enable_exception_callback) PARAMS ((enum exception_event_kind, int)); struct exception_event_record * (*to_get_current_exception_event) PARAMS ((void)); char * (*to_pid_to_exec_file) PARAMS ((int pid)); @@ -888,6 +889,16 @@ print_section_info PARAMS ((struct target_ops *, bfd *)); #define target_stop current_target.to_stop +/* Queries the target side for some information. The first argument is a + letter specifying the type of the query, which is used to determine who + should process it. The second argument is a string that specifies which + information is desired and the third is a buffer that carries back the + response from the target side. The fourth parameter is the size of the + output buffer supplied. */ + +#define target_query(query_type, query, resp_buffer, bufffer_size) \ + (*current_target.to_query) (query_type, query, resp_buffer, bufffer_size) + /* Get the symbol information for a breakpointable routine called when an exception event occurs. Intended mainly for C++, and for those |