diff options
author | Daniel Jacobowitz <dan@debian.org> | 2006-11-28 22:10:26 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2006-11-28 22:10:26 +0000 |
commit | cb420038d38ccc2768241fd87444113ca638350f (patch) | |
tree | 2d8938f4b8f991813f853d760ebd29bbd750c8bb /gdb/target.h | |
parent | f869f466caaa11489074942b75099647e2da9f44 (diff) | |
download | gdb-cb420038d38ccc2768241fd87444113ca638350f.tar.gz |
* Makefile.in (SFILES): Add new and missed files.
(target_descriptions_h): New.
(COMMON_OBS): Add target-descriptions.o.
(arch-utils.o, infcmd.o, remote.o, target.o): Update.
(target-descriptions.o): New.
* arch-utils.c (gdbarch_info_fill): Check for a target
description.
* target-descriptions.c, target-descriptions.h: New files.
* gdbarch.sh: Add target_desc to info. Declare it in gdbarch.h.
Correct typos.
(gdbarch_list_lookup_by_info): Check target_desc.
* gdbarch.c, gdbarch.h: Regenerated.
* target.c (update_current_target): Mention to_read_description.
(target_pre_inferior): Call target_clear_description.
(target_read_description): New.
* target.h (struct target_ops): Add to_read_description.
(target_read_description): New prototype.
* infcmd.c (post_create_inferior): Call target_find_description.
* remote.c (remote_open_1): Likewise.
(extended_remote_create_inferior): Add a comment.
(extended_remote_async_create_inferior): Likewise.
Diffstat (limited to 'gdb/target.h')
-rw-r--r-- | gdb/target.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/target.h b/gdb/target.h index 7be4aca5a0d..412bf93c04e 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -492,6 +492,11 @@ struct target_ops equal to what was written. */ void (*to_flash_done) (struct target_ops *); + /* Describe the architecture-specific features of this target. + Returns the description found, or NULL if no description + was available. */ + const struct target_desc *(*to_read_description) (struct target_ops *ops); + int to_magic; /* Need sub-structure for target machine related rather than comm related? */ @@ -1179,6 +1184,8 @@ extern int target_stopped_data_address_p (struct target_ops *); #define target_stopped_data_address_p(CURRENT_TARGET) (1) #endif +extern const struct target_desc *target_read_description (struct target_ops *); + /* This will only be defined by a target that supports catching vfork events, such as HP-UX. |