gdb_register_feature(cpu, 0,
cc->gdb_read_register, cc->gdb_write_register,
feature);
+ assert(!cc->gdb_num_core_regs);
cpu->gdb_num_regs = cpu->gdb_num_g_regs = feature->num_regs;
}
* @gdb_adjust_breakpoint: Callback for adjusting the address of a
* breakpoint. Used by AVR to handle a gdb mis-feature with
* its Harvard architecture split code and data.
- * @gdb_num_core_regs: Number of core registers accessible to GDB or 0 to infer
- * from @gdb_core_xml_file.
* @gdb_core_xml_file: File name for core registers GDB XML description.
+ * @gdb_num_core_regs: Number of core registers accessible to GDB if no
+ * @gdb_core_xml_file available (otherwise inferred).
* @gdb_get_core_xml_file: Optional callback that returns the file name for
* the core registers GDB XML description. The returned value is expected to
* be a simple constant string: the caller will not g_free() it. If this
cc->disas_set_info = alpha_cpu_disas_set_info;
cc->tcg_ops = &alpha_tcg_ops;
- cc->gdb_num_core_regs = 67;
}
#define DEFINE_ALPHA_CPU_TYPE(base_type, cpu_model, initfn) \
MMU_INST_FETCH == 2 && PAGE_READ == 1 &&
PAGE_WRITE == 2 && PAGE_EXEC == 4);
#endif
-
- cc->gdb_num_core_regs = 70;
cc->gdb_arch_name = ppc_gdb_arch_name;
#if defined(TARGET_PPC64)
cc->gdb_core_xml_file = "power64-core.xml";
#if defined(TARGET_SPARC64) && !defined(TARGET_ABI32)
cc->gdb_core_xml_file = "sparc64-core.xml";
- cc->gdb_num_core_regs = 86;
#else
cc->gdb_num_core_regs = 72;
#endif