Introduce gdbarch_num_cooked_regs
[deliverable/binutils-gdb.git] / gdb / gdbarch.sh
index 670ac30c030346592fe1f310669644281b49bc75..bbfa8d2205835d1ce283ebb0b1eef08a88a2183b 100755 (executable)
@@ -1632,6 +1632,14 @@ extern unsigned int gdbarch_debug;
 
 extern void gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file);
 
+/* Return the number of cooked registers (raw + pseudo) for ARCH.  */
+
+static inline int
+gdbarch_num_cooked_regs (gdbarch *arch)
+{
+  return gdbarch_num_regs (arch) + gdbarch_num_pseudo_regs (arch);
+}
+
 #endif
 EOF
 exec 1>&2
This page took 0.032379 seconds and 4 git commands to generate.