* 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.
This commit is contained in:
parent
1ba0a4eebc
commit
7fc0c7b58f
|
@ -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>
|
2009-03-15 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
Fix an error happening while loading symbols from a core file
|
Fix an error happening while loading symbols from a core file
|
||||||
|
|
|
@ -1676,7 +1676,7 @@ aix_thread_mourn_inferior (struct target_ops *ops)
|
||||||
static int
|
static int
|
||||||
aix_thread_thread_alive (struct target_ops *ops, ptid_t ptid)
|
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))
|
if (!PD_TID (ptid))
|
||||||
return beneath->to_thread_alive (beneath, 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)
|
aix_thread_pid_to_str (struct target_ops *ops, ptid_t ptid)
|
||||||
{
|
{
|
||||||
static char *ret = NULL;
|
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))
|
if (!PD_TID (ptid))
|
||||||
return beneath->to_pid_to_str (beneath, ptid);
|
return beneath->to_pid_to_str (beneath, ptid);
|
||||||
|
|
Loading…
Reference in New Issue