diff options
| author | Alex Bennée <alex.bennee@linaro.org> | 2023-08-29 17:15:26 +0100 |
|---|---|---|
| committer | Alex Bennée <alex.bennee@linaro.org> | 2023-08-30 14:57:56 +0100 |
| commit | 56e534bd116afda6f7b9ef96691549373c64040d (patch) | |
| tree | 9f1178a5b432c1610d544ecdd133ab975886a644 /gdbstub/internals.h | |
| parent | 5b030993dba1bbb841431506c0919c7a7bef986c (diff) | |
| download | focaccia-qemu-56e534bd116afda6f7b9ef96691549373c64040d.tar.gz focaccia-qemu-56e534bd116afda6f7b9ef96691549373c64040d.zip | |
gdbstub: refactor get_feature_xml
Try to bring up the code to more modern standards by: - use dynamic GString built xml over a fixed buffer - use autofree to save on explicit g_free() calls - don't hand hack strstr to find the delimiter - fix up style of xml_builtin and invert loop Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20230829161528.2707696-11-alex.bennee@linaro.org>
Diffstat (limited to 'gdbstub/internals.h')
| -rw-r--r-- | gdbstub/internals.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbstub/internals.h b/gdbstub/internals.h index f2b46cce41..4876ebd74f 100644 --- a/gdbstub/internals.h +++ b/gdbstub/internals.h @@ -33,7 +33,7 @@ typedef struct GDBProcess { uint32_t pid; bool attached; - char target_xml[1024]; + char *target_xml; } GDBProcess; enum RSState { |