Skip to content

Commit

Permalink
gdbstub: Fix target_xml initialization
Browse files Browse the repository at this point in the history
target_xml is no longer a fixed-length array but a pointer to a
variable-length memory.

Fixes: 56e534b ("gdbstub: refactor get_feature_xml")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-Id: <20230912224107.29669-2-akihiko.odaki@daynix.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231009164104.369749-9-alex.bennee@linaro.org>
  • Loading branch information
akihikodaki authored and stsquad committed Oct 11, 2023
1 parent e0f8951 commit af2e06c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdbstub/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ static int find_cpu_clusters(Object *child, void *opaque)
assert(cluster->cluster_id != UINT32_MAX);
process->pid = cluster->cluster_id + 1;
process->attached = false;
process->target_xml[0] = '\0';
process->target_xml = NULL;

return 0;
}
Expand Down

0 comments on commit af2e06c

Please sign in to comment.