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 <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Reviewed-by: Alistair Francis <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Alex Bennée <[email protected]>
Message-Id: <[email protected]>
  • 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.