From 4b4599778012b2b15b12acd57150bbac417e6229 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 5 Jun 2009 18:34:21 +0000 Subject: [PATCH] * mi/mi-main.c (mi_cmd_exec_continue) (mi_cmd_exec_interrupt): Adjust parsing of thread group ids to current reality, where they don't have any 'p' prefix. --- gdb/ChangeLog | 6 ++++++ gdb/mi/mi-main.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1860076742b..911f289bc96 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-06-05 Marc Khouzam + + * mi/mi-main.c (mi_cmd_exec_continue) + (mi_cmd_exec_interrupt): Adjust parsing of thread group + ids to current reality, where they don't have any 'p' prefix. + 2009-06-05 Aleksandar Ristovski * corelow.c (core_open): Check for core_gdbarch before calling diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 9a064c17bf6..73aec0ffb44 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -205,7 +205,7 @@ mi_cmd_exec_continue (char *command, char **argv, int argc) int pid; if (argv[1] == NULL || argv[1] == '\0') error ("Thread group id not specified"); - pid = atoi (argv[1] + 1); + pid = atoi (argv[1]); if (!in_inferior_list (pid)) error ("Invalid thread group id '%s'", argv[1]); @@ -260,7 +260,7 @@ mi_cmd_exec_interrupt (char *command, char **argv, int argc) int pid; if (argv[1] == NULL || argv[1] == '\0') error ("Thread group id not specified"); - pid = atoi (argv[1] + 1); + pid = atoi (argv[1]); if (!in_inferior_list (pid)) error ("Invalid thread group id '%s'", argv[1]); -- 2.30.2