diff options
author | Marc Khouzam <marc.khouzam@ericsson.com> | 2010-08-05 15:42:06 +0000 |
---|---|---|
committer | Marc Khouzam <marc.khouzam@ericsson.com> | 2010-08-05 15:42:06 +0000 |
commit | e2b4a699ea7857ad1336d050cb28f53d99ae3786 (patch) | |
tree | 9f2c96791a89a276c470c9211c0b253f0f5e7f15 /gdb/mi | |
parent | b3808325c52ab089d28b5bf9b8d9558e8c2fa329 (diff) | |
download | gdb-e2b4a699ea7857ad1336d050cb28f53d99ae3786.zip gdb-e2b4a699ea7857ad1336d050cb28f53d99ae3786.tar.gz gdb-e2b4a699ea7857ad1336d050cb28f53d99ae3786.tar.bz2 |
* mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |