aboutsummaryrefslogtreecommitdiff
path: root/gdb/aix-thread.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-03-15 21:05:41 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-03-15 21:05:41 +0000
commit7fc0c7b58f8ac2ceb2cd08084849674325af3d86 (patch)
tree8afe6aae2b2686a7f63a64be5ab2befdf829cc60 /gdb/aix-thread.c
parent1ba0a4eebc1439600bcfa5077d568a86f648201d (diff)
downloadgdb-7fc0c7b58f8ac2ceb2cd08084849674325af3d86.zip
gdb-7fc0c7b58f8ac2ceb2cd08084849674325af3d86.tar.gz
gdb-7fc0c7b58f8ac2ceb2cd08084849674325af3d86.tar.bz2
* 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.
Diffstat (limited to 'gdb/aix-thread.c')
-rw-r--r--gdb/aix-thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
index b06b5f3..1eeeadb 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 (&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);