summaryrefslogtreecommitdiff
path: root/gdb/remote.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2006-11-28 22:14:31 +0000
committerDaniel Jacobowitz <dan@debian.org>2006-11-28 22:14:31 +0000
commitda0b73fe0e2f3ad5e88b555bf139169632553de3 (patch)
tree828f9b704c51b33121a5645e1bb3e6abbc682996 /gdb/remote.h
parentcb420038d38ccc2768241fd87444113ca638350f (diff)
downloadgdb-da0b73fe0e2f3ad5e88b555bf139169632553de3.tar.gz
* Makefile.in (mips-tdep.o, target-descriptions.o): Update.
* target-descriptions.c (struct property): New. (struct target_desc): Add properties member. (tdesc_property, set_tdesc_property): New. * target-descriptions.h (tdesc_property, set_tdesc_property): Declare. * mips-tdep.c (PROPERTY_GP32, PROPERTY_GP64): New constants. (struct gdbarch_tdep): Add register_size_valid_p and register_size. (mips_isa_regsize): Use them. (mips_register_g_packet_guesses): New. (mips_gdbarch_init): Call it. If a target description is supplied, check for internal properties. Check for register size mismatches. * remote.c (send_g_packet, process_g_packet): New functions, split out from fetch_registers_using_g. (fetch_registers_using_g): Use them. (struct remote_g_packet_guess, remote_g_packet_guess_s) (struct remote_g_packet_data, remote_g_packet_data_handle) (remote_g_packet_data_init, register_remote_g_packet_guess) (remote_read_description): New. (init_remote_ops, init_remote_async_ops): Set to_read_description. (_initialize_remote): Register remote_g_packet_data_handle. * remote.h (register_remote_g_packet_guess): Declare.
Diffstat (limited to 'gdb/remote.h')
-rw-r--r--gdb/remote.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/remote.h b/gdb/remote.h
index fd84a91bdbe..50f1a861476 100644
--- a/gdb/remote.h
+++ b/gdb/remote.h
@@ -21,6 +21,8 @@
#ifndef REMOTE_H
#define REMOTE_H
+struct target_desc;
+
/* FIXME?: move this interface down to tgt vector) */
/* Read a packet from the remote machine, with error checking, and
@@ -63,4 +65,7 @@ extern int remote_read_bytes (CORE_ADDR memaddr, gdb_byte *myaddr, int len);
extern void (*deprecated_target_resume_hook) (void);
extern void (*deprecated_target_wait_loop_hook) (void);
+void register_remote_g_packet_guess (struct gdbarch *gdbarch, int bytes,
+ const struct target_desc *tdesc);
+
#endif