* mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
authorPedro Alves <palves@redhat.com>
Wed, 14 Jan 2009 14:22:01 +0000 (14:22 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 14 Jan 2009 14:22:01 +0000 (14:22 +0000)
without a live selected thread.

gdb/ChangeLog
gdb/mi/mi-main.c

index b4a8dc1..caff8a8 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-14  Pedro Alves  <pedro@codesourcery.com>
+
+       * mi/mi-main.c (mi_cmd_execute): Also allow -list-thread-groups
+       without a live selected thread.
+
 2009-01-14  Joel Brobecker  <brobecker@adacore.com>
 
        Update the copyright notice of some of the files I missed
index dc48e47..f290753 100644 (file)
@@ -1355,7 +1355,8 @@ mi_cmd_execute (struct mi_parse *parse)
          && (is_exited (inferior_ptid))
          && (strcmp (parse->command, "thread-info") != 0
              && strcmp (parse->command, "thread-list-ids") != 0
-             && strcmp (parse->command, "thread-select") != 0))
+             && strcmp (parse->command, "thread-select") != 0)
+             && strcmp (parse->command, "list-thread-groups") != 0)
        {
          struct ui_file *stb;
          stb = mem_fileopen ();