]> Git Repo - qemu.git/commitdiff
gdbstub: Fix qOffsets packet detection
authorJan Kiszka <[email protected]>
Sat, 7 Feb 2015 08:38:42 +0000 (09:38 +0100)
committerPeter Maydell <[email protected]>
Thu, 28 May 2015 15:57:35 +0000 (16:57 +0100)
qOffsets has no additional optional parameters. So match the complete
string to avoid stumbling over possible future commands with identical
prefix.

Signed-off-by: Jan Kiszka <[email protected]>
Reviewed-by: Peter Maydell <[email protected]>
Signed-off-by: Peter Maydell <[email protected]>
gdbstub.c

index 8abcb8a45126a8e0b50a05d837eff851db5dab43..86772d0257f3c673712047a567661587ff5ecd70 100644 (file)
--- a/gdbstub.c
+++ b/gdbstub.c
@@ -1107,7 +1107,7 @@ static int gdb_handle_packet(GDBState *s, const char *line_buf)
             break;
         }
 #ifdef CONFIG_USER_ONLY
-        else if (strncmp(p, "Offsets", 7) == 0) {
+        else if (strcmp(p, "Offsets") == 0) {
             TaskState *ts = s->c_cpu->opaque;
 
             snprintf(buf, sizeof(buf),
This page took 0.032293 seconds and 4 git commands to generate.