Don't propagate our current terminal state to the inferior
[deliverable/binutils-gdb.git] / gdb / ada-tasks.c
index 2d5a19db177b9193ed996f829d19d9aef7ed5b31..fa28381d355b8fb390fcf9d0029a37686a96154a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2014 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2015 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -292,7 +292,7 @@ int
 ada_get_task_number (ptid_t ptid)
 {
   int i;
-  struct inferior *inf = find_inferior_pid (ptid_get_pid (ptid));
+  struct inferior *inf = find_inferior_ptid (ptid);
   struct ada_tasks_inferior_data *data;
 
   gdb_assert (inf != NULL);
@@ -1449,4 +1449,3 @@ _initialize_tasks (void)
 Without argument, this command simply prints the current task ID"),
            &cmdlist);
 }
-
This page took 0.048109 seconds and 4 git commands to generate.