aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-06-05 18:34:21 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-06-05 18:34:21 +0000
commit4b4599778012b2b15b12acd57150bbac417e6229 (patch)
treef25d6de037afbff8b7f7f8b910135a8e3d05738f /gdb/mi
parent805bb01c4b93ddb2422af91ea8f76019c8e0c319 (diff)
downloadgdb-4b4599778012b2b15b12acd57150bbac417e6229.zip
gdb-4b4599778012b2b15b12acd57150bbac417e6229.tar.gz
gdb-4b4599778012b2b15b12acd57150bbac417e6229.tar.bz2
* 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.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 9a064c1..73aec0f 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]);