aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index f922efa..2bcc7f6 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -20,6 +20,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef GDBARCH_H
#define GDBARCH_H
+#ifdef __STDC__
+struct frame_info;
+struct value;
+enum lval_type;
+#endif
+
/* The target-system-dependant byte order is dynamic */
/* TARGET_BYTE_ORDER_SELECTABLE_P determines if the target endianness
@@ -140,6 +146,14 @@ extern disassemble_info tm_print_insn_info;
#endif
+/* Fallback definition for REGISTER_NAME for systems still defining
+ REGISTER_NAMES. */
+#ifndef REGISTER_NAME
+extern char *gdb_register_names[];
+#define REGISTER_NAME(i) gdb_register_names[i]
+#endif
+
+
/* Set the dynamic target-system-dependant parameters (architecture,
byte-order, ...) using information found in the BFD */
@@ -152,6 +166,12 @@ extern void set_gdbarch_from_file PARAMS ((bfd *));
extern void set_architecture_from_arch_mach PARAMS ((enum bfd_architecture, unsigned long));
+/* Helper function for targets that don't know how my arguments are
+ being passed */
+
+extern int frame_num_args_unknown PARAMS ((struct frame_info *fi));
+
+
/* gdbarch trace variable */
extern int gdbarch_debug;