diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c42509ca1..13424fc694 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 85a3f99a78..95a0bc5991 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);