aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/remote-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/remote-utils.c')
-rw-r--r--gdb/gdbserver/remote-utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/gdbserver/remote-utils.c b/gdb/gdbserver/remote-utils.c
index 103bcc7..92794a8 100644
--- a/gdb/gdbserver/remote-utils.c
+++ b/gdb/gdbserver/remote-utils.c
@@ -1118,6 +1118,7 @@ prepare_resume_reply (char *buf, ptid_t ptid,
buf = outreg (find_regno (*regp), buf);
regp ++;
}
+ *buf = '\0';
/* Formerly, if the debugger had not used any thread features
we would not burden it with a thread status response. This