Per-inferior/Inferior-qualified thread IDs
[deliverable/binutils-gdb.git] / gdb / mi / mi-main.c
index 2b25a9c9ee68ba5c5569c18769ff312643185807..e25eedf987148c4c0f538c1dd47554255ee3d411 100644 (file)
@@ -1,6 +1,6 @@
 /* MI Command Set.
 
-   Copyright (C) 2000-2015 Free Software Foundation, Inc.
+   Copyright (C) 2000-2016 Free Software Foundation, Inc.
 
    Contributed by Cygnus Solutions (a Red Hat company).
 
@@ -2165,7 +2165,7 @@ mi_execute_command (const char *cmd, int from_tty)
            {
              struct thread_info *ti = inferior_thread ();
 
-             report_change = (ti->num != command->thread);
+             report_change = (ti->global_num != command->thread);
            }
 
          if (report_change)
@@ -2175,7 +2175,7 @@ mi_execute_command (const char *cmd, int from_tty)
              target_terminal_ours ();
              fprintf_unfiltered (mi->event_channel,
                                  "thread-selected,id=\"%d\"",
-                                 ti->num);
+                                 ti->global_num);
              gdb_flush (mi->event_channel);
            }
        }
@@ -2226,7 +2226,7 @@ mi_cmd_execute (struct mi_parse *parse)
 
   if (parse->thread != -1)
     {
-      struct thread_info *tp = find_thread_id (parse->thread);
+      struct thread_info *tp = find_thread_global_id (parse->thread);
 
       if (!tp)
        error (_("Invalid thread id: %d"), parse->thread);
This page took 0.024481 seconds and 4 git commands to generate.