* aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
authorJoel Brobecker <brobecker@gnat.com>
Sun, 15 Mar 2009 21:05:41 +0000 (21:05 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Sun, 15 Mar 2009 21:05:41 +0000 (21:05 +0000)
        Use the ops parameter to get to the target beneath, rather than
        using the current_target global.  Using the current_target global
        was an unintended accident.

gdb/ChangeLog
gdb/aix-thread.c

index 55af3ec0eedd5fb46d02d67606ba2b436de06733..f9a481ee7660e081f5167d93916ded8dfbf18551 100644 (file)
@@ -1,3 +1,10 @@
+2009-03-15  Joel Brobecker  <brobecker@adacore.com>
+
+       * aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
+       Use the ops parameter to get to the target beneath, rather than
+       using the current_target global.  Using the current_target global
+       was an unintended accident.
+
 2009-03-15  Joel Brobecker  <brobecker@adacore.com>
 
        Fix an error happening while loading symbols from a core file
index b06b5f3f7f25e823f01a04e7e04a1378abb36e2c..1eeeadb6d4fc3919a2115034fcef204533295639 100644 (file)
@@ -1676,7 +1676,7 @@ aix_thread_mourn_inferior (struct target_ops *ops)
 static int
 aix_thread_thread_alive (struct target_ops *ops, ptid_t ptid)
 {
-  struct target_ops *beneath = find_target_beneath (&current_target);
+  struct target_ops *beneath = find_target_beneath (ops);
 
   if (!PD_TID (ptid))
     return beneath->to_thread_alive (beneath, ptid);
@@ -1693,7 +1693,7 @@ static char *
 aix_thread_pid_to_str (struct target_ops *ops, ptid_t ptid)
 {
   static char *ret = NULL;
-  struct target_ops *beneath = find_target_beneath (&current_target);
+  struct target_ops *beneath = find_target_beneath (ops);
 
   if (!PD_TID (ptid))
     return beneath->to_pid_to_str (beneath, ptid);
This page took 0.034715 seconds and 4 git commands to generate.