From e2b4a699ea7857ad1336d050cb28f53d99ae3786 Mon Sep 17 00:00:00 2001 From: Marc Khouzam Date: Thu, 5 Aug 2010 15:42:06 +0000 Subject: [PATCH] * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument. --- gdb/ChangeLog | 5 +++++ gdb/mi/mi-main.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c42509ca15..13424fc6940 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-08-05 Marc Khouzam + + * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first + argument. + 2010-08-05 Hui Zhu * mips-linux-tdep.c(regset.h): New include. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 85a3f99a788..95a0bc5991a 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -1609,7 +1609,7 @@ mi_cmd_remove_inferior (char *command, char **argv, int argc) if (argc != 1) error ("-remove-inferior should be passed a single argument"); - if (sscanf (argv[1], "i%d", &id) != 1) + if (sscanf (argv[0], "i%d", &id) != 1) error ("the thread group id is syntactically invalid"); inf = find_inferior_id (id); -- 2.30.2