aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-08-01 14:48:01 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2000-08-01 14:48:01 +0000
commit666e11c5d46a0a7a024e1f7326390cce51cd1014 (patch)
treed98526ec4663de3e5dbc61b0a7e6c07c65afb6d4 /gdb/gdbarch.h
parent26c11c07fad0e065ec66940a6d00c78a43ed18f3 (diff)
downloadgdb-666e11c5d46a0a7a024e1f7326390cce51cd1014.zip
gdb-666e11c5d46a0a7a024e1f7326390cce51cd1014.tar.gz
gdb-666e11c5d46a0a7a024e1f7326390cce51cd1014.tar.bz2
2000-08-01 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* gdbarch.sh: Multiarch DO_REGISTERS_INFO macro. * gdbarch.h, gdbarch.c: Regenerate. * infcmd.c (do_registers_info): Make not static and unconditionalize. * inferior.h (do_registers_info): Export.
Diffstat (limited to 'gdb/gdbarch.h')
-rw-r--r--gdb/gdbarch.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index f78db27..2077048 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -396,6 +396,20 @@ extern void set_gdbarch_register_virtual_type (struct gdbarch *gdbarch, gdbarch_
#endif
#endif
+/* Default (function) for non- multi-arch platforms. */
+#if (!GDB_MULTI_ARCH) && !defined (DO_REGISTERS_INFO)
+#define DO_REGISTERS_INFO(reg_nr, fpregs) (do_registers_info (reg_nr, fpregs))
+#endif
+
+typedef void (gdbarch_do_registers_info_ftype) (int reg_nr, int fpregs);
+extern void gdbarch_do_registers_info (struct gdbarch *gdbarch, int reg_nr, int fpregs);
+extern void set_gdbarch_do_registers_info (struct gdbarch *gdbarch, gdbarch_do_registers_info_ftype *do_registers_info);
+#if GDB_MULTI_ARCH
+#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (DO_REGISTERS_INFO)
+#define DO_REGISTERS_INFO(reg_nr, fpregs) (gdbarch_do_registers_info (current_gdbarch, reg_nr, fpregs))
+#endif
+#endif
+
extern int gdbarch_use_generic_dummy_frames (struct gdbarch *gdbarch);
extern void set_gdbarch_use_generic_dummy_frames (struct gdbarch *gdbarch, int use_generic_dummy_frames);
#if GDB_MULTI_ARCH