aboutsummaryrefslogtreecommitdiff
path: root/include/gdbstub/commands.h
diff options
context:
space:
mode:
authorGustavo Romero <gustavo.romero@linaro.org>2024-07-05 09:40:43 +0100
committerAlex Bennée <alex.bennee@linaro.org>2024-07-05 12:35:19 +0100
commit3ce0fc57a0e7d528ce0435c93205f9f6558c38ff (patch)
tree5e1e6404e1847127deabf7681f1ab0dec60f7699 /include/gdbstub/commands.h
parentbef6a77f6da8bdba7dca36aec4976b434d0d8f1c (diff)
downloadqemu-3ce0fc57a0e7d528ce0435c93205f9f6558c38ff.zip
qemu-3ce0fc57a0e7d528ce0435c93205f9f6558c38ff.tar.gz
qemu-3ce0fc57a0e7d528ce0435c93205f9f6558c38ff.tar.bz2
gdbstub: Make hex conversion function non-internal
Make gdb_hextomem non-internal so it's not confined to use only in gdbstub.c. Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240628050850.536447-8-gustavo.romero@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20240705084047.857176-37-alex.bennee@linaro.org>
Diffstat (limited to 'include/gdbstub/commands.h')
-rw-r--r--include/gdbstub/commands.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/gdbstub/commands.h b/include/gdbstub/commands.h
index 306dfde..e51f276 100644
--- a/include/gdbstub/commands.h
+++ b/include/gdbstub/commands.h
@@ -91,4 +91,10 @@ void gdb_extend_set_table(GdbCmdParseEntry *table, int size);
*/
void gdb_extend_qsupported_features(char *qsupported_features);
+/**
+ * Convert a hex string to bytes. Conversion is done per byte, so 2 hex digits
+ * are converted to 1 byte. Invalid hex digits are treated as 0 digits.
+ */
+void gdb_hextomem(GByteArray *mem, const char *buf, int len);
+
#endif /* GDBSTUB_COMMANDS_H */