aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2006-08-02 21:32:37 +0000
committerMark Kettenis <kettenis@gnu.org>2006-08-02 21:32:37 +0000
commit47ccd04848b5dac105ea353a2a98019c49d3000a (patch)
treefeb00c96dc77ff51bfc35e08e335eb9aa66b65b0 /gdb/arm-tdep.h
parent9d7cbccda0d0b223261e33efb609a7a43401ec5e (diff)
downloadgdb-47ccd04848b5dac105ea353a2a98019c49d3000a.zip
gdb-47ccd04848b5dac105ea353a2a98019c49d3000a.tar.gz
gdb-47ccd04848b5dac105ea353a2a98019c49d3000a.tar.bz2
* arm-tdep.h: Add multiple inclusion protection.
(struct gdbarch): Add forward declaration. (armobsd_regset_from_core_section): New prototype. * armbsd-tdep.c: New file. * armobsd-tdep.c: Include "gdb_string.h". (armobsd_init_abi): Set regset_from_core_section. (armobsd_core_osabi_sniffer): New function. (_initialize_armobsd_tdep): Register armobsd_core_osabi_sniffer. * Makefile.in (ALLDEPFILES): Add armbsd-tdep.c. (armbsd-tdep.o): New dependency. (armnbsd-tdep.o): Update dependencies. * config/arm/obsd.mt (TDEPFILES): Add armbsd-tdep.o and corelow.o.
Diffstat (limited to 'gdb/arm-tdep.h')
-rw-r--r--gdb/arm-tdep.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h
index 7b369d5..a5fc99d 100644
--- a/gdb/arm-tdep.h
+++ b/gdb/arm-tdep.h
@@ -18,7 +18,11 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA. */
+#ifndef ARM_TDEP_H
+#define ARM_TDEP_H
+
/* Forward declarations. */
+struct gdbarch;
struct regset;
/* Register numbers of various important registers. Note that some of
@@ -176,3 +180,14 @@ int arm_pc_is_thumb (CORE_ADDR);
CORE_ADDR thumb_get_next_pc (CORE_ADDR);
CORE_ADDR arm_get_next_pc (CORE_ADDR);
+
+/* Functions exported from armbsd-tdep.h. */
+
+/* Return the appropriate register set for the core section identified
+ by SECT_NAME and SECT_SIZE. */
+
+extern const struct regset *
+ armbsd_regset_from_core_section (struct gdbarch *gdbarch,
+ const char *sect_name, size_t sect_size);
+
+#endif /* arm-tdep.h */