aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-09-10 21:14:11 +0000
committerDaniel Jacobowitz <drow@false.org>2007-09-10 21:14:11 +0000
commit4eb0ad19f379a411b76d7adf2664c46f79402878 (patch)
tree10d6012bd8cc9d1f46589acbdccdd215cd792bcb /gdb/gdbarch.h
parent6a6b96b9c2552b97902d8ef1fbbce207328eef16 (diff)
downloadgdb-4eb0ad19f379a411b76d7adf2664c46f79402878.zip
gdb-4eb0ad19f379a411b76d7adf2664c46f79402878.tar.gz
gdb-4eb0ad19f379a411b76d7adf2664c46f79402878.tar.bz2
* arch-utils.c (gdbarch_info_fill): Also try core_bfd.
* corelow.c (core_read_description): New. (init_core_ops): Set to_read_description. * gdbarch.sh: Add gdbarch_core_read_description. * mips-linux-tdep.c (mips_linux_core_read_description): New. (mips_linux_init_abi): Call set_gdbarch_core_read_description. * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New. (mips_register_g_packet_guesses): Use them. (_initialize_mips_tdep): Initialize them. * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare. * gdbarch.h, gdbarch.c: Regenerated.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index a573bde..95a2391 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -687,6 +687,12 @@ typedef void (gdbarch_overlay_update_ftype) (struct obj_section *osect);
extern void gdbarch_overlay_update (struct gdbarch *gdbarch, struct obj_section *osect);
extern void set_gdbarch_overlay_update (struct gdbarch *gdbarch, gdbarch_overlay_update_ftype *overlay_update);
+extern int gdbarch_core_read_description_p (struct gdbarch *gdbarch);
+
+typedef const struct target_desc * (gdbarch_core_read_description_ftype) (struct gdbarch *gdbarch, struct target_ops *target, bfd *abfd);
+extern const struct target_desc * gdbarch_core_read_description (struct gdbarch *gdbarch, struct target_ops *target, bfd *abfd);
+extern void set_gdbarch_core_read_description (struct gdbarch *gdbarch, gdbarch_core_read_description_ftype *core_read_description);
+
extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch);