|
@@ -111,6 +111,34 @@ void gdb_feature_builder_end(const GDBFeatureBuilder *builder);
|
|
|
*/
|
|
|
const GDBFeature *gdb_find_static_feature(const char *xmlname);
|
|
|
|
|
|
+/**
|
|
|
+ * gdb_read_register() - Read a register associated with a CPU.
|
|
|
+ * @cpu: The CPU associated with the register.
|
|
|
+ * @buf: The buffer that the read register will be appended to.
|
|
|
+ * @reg: The register's number returned by gdb_find_feature_register().
|
|
|
+ *
|
|
|
+ * Return: The number of read bytes.
|
|
|
+ */
|
|
|
+int gdb_read_register(CPUState *cpu, GByteArray *buf, int reg);
|
|
|
+
|
|
|
+/**
|
|
|
+ * typedef GDBRegDesc - a register description from gdbstub
|
|
|
+ */
|
|
|
+typedef struct {
|
|
|
+ int gdb_reg;
|
|
|
+ const char *name;
|
|
|
+ const char *feature_name;
|
|
|
+} GDBRegDesc;
|
|
|
+
|
|
|
+/**
|
|
|
+ * gdb_get_register_list() - Return list of all registers for CPU
|
|
|
+ * @cpu: The CPU being searched
|
|
|
+ *
|
|
|
+ * Returns a GArray of GDBRegDesc, caller frees array but not the
|
|
|
+ * const strings.
|
|
|
+ */
|
|
|
+GArray *gdb_get_register_list(CPUState *cpu);
|
|
|
+
|
|
|
void gdb_set_stop_cpu(CPUState *cpu);
|
|
|
|
|
|
/* in gdbstub-xml.c, generated by scripts/feature_to_c.py */
|