|
@@ -110,6 +110,21 @@ void gdb_memtohex(GString *buf, const uint8_t *mem, int len);
|
|
|
void gdb_memtox(GString *buf, const char *mem, int len);
|
|
|
void gdb_read_byte(uint8_t ch);
|
|
|
|
|
|
+/*
|
|
|
+ * Packet acknowledgement - we handle this slightly differently
|
|
|
+ * between user and softmmu mode, mainly to deal with the differences
|
|
|
+ * between the flexible chardev and the direct fd approaches.
|
|
|
+ *
|
|
|
+ * We currently don't support a negotiated QStartNoAckMode
|
|
|
+ */
|
|
|
+
|
|
|
+/**
|
|
|
+ * gdb_got_immediate_ack() - check ok to continue
|
|
|
+ *
|
|
|
+ * Returns true to continue, false to re-transmit for user only, the
|
|
|
+ * softmmu stub always returns true.
|
|
|
+ */
|
|
|
+bool gdb_got_immediate_ack(void);
|
|
|
/* utility helpers */
|
|
|
CPUState *gdb_first_attached_cpu(void);
|
|
|
void gdb_append_thread_id(CPUState *cpu, GString *buf);
|