Introduce gdbarch_num_cooked_regs
[deliverable/binutils-gdb.git] / gdb / gdbarch.h
index fc2f1a84a1ca6ecf182862b7263b2100359e304d..2cb69610837d64f832f861f4611a2b7d6ae94506 100644 (file)
@@ -1806,4 +1806,12 @@ 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
This page took 0.023749 seconds and 4 git commands to generate.