diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0c42509..13424fc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com> + + * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first + argument. + 2010-08-05 Hui Zhu <teawater@gmail.com> * mips-linux-tdep.c(regset.h): New include. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 85a3f99..95a0bc5 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); |