From 1762b7d0a6c26f2f4efef38a42faed398ad32210 Mon Sep 17 00:00:00 2001 From: brobecke Date: Sun, 15 Mar 2009 21:05:41 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 7 +++++++ gdb/aix-thread.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 55af3ec0ee..f9a481ee76 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,12 @@ 2009-03-15 Joel Brobecker + * 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 + Fix an error happening while loading symbols from a core file (on AIX). diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index b06b5f3f7f..1eeeadb6d4 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -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 (¤t_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 (¤t_target); + struct target_ops *beneath = find_target_beneath (ops); if (!PD_TID (ptid)) return beneath->to_pid_to_str (beneath, ptid); -- 2.11.0