aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2010-05-08 18:23:42 +0000
committerJoel Brobecker <brobecker@gnat.com>2010-05-08 18:23:42 +0000
commitfa07e785f20d0ffea5ac13eb46399b1f301a983e (patch)
treee51f7284cc89d4c4e97fa4854d454dbb79826f58 /gdb/inf-ttrace.c
parent * valops.c (find_overload_match): Add missing i18n markup. (diff)
downloadbinutils-gdb-fa07e785f20d0ffea5ac13eb46399b1f301a983e.tar.gz
binutils-gdb-fa07e785f20d0ffea5ac13eb46399b1f301a983e.tar.bz2
binutils-gdb-fa07e785f20d0ffea5ac13eb46399b1f301a983e.zip
Implement task switching on pa-hpux.
gdb/ChangeLog: * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function. (inf_ttrace_target): Set t->to_get_ada_task_ptid.
Diffstat (limited to 'gdb/inf-ttrace.c')
-rw-r--r--gdb/inf-ttrace.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/inf-ttrace.c b/gdb/inf-ttrace.c
index 708a07c5875..199ceb9f175 100644
--- a/gdb/inf-ttrace.c
+++ b/gdb/inf-ttrace.c
@@ -1243,6 +1243,15 @@ inf_ttrace_pid_to_str (struct target_ops *ops, ptid_t ptid)
}
+/* Implement the get_ada_task_ptid target_ops method. */
+
+static ptid_t
+inf_ttrace_get_ada_task_ptid (long lwp, long thread)
+{
+ return ptid_build (ptid_get_pid (inferior_ptid), lwp, 0);
+}
+
+
struct target_ops *
inf_ttrace_target (void)
{
@@ -1267,6 +1276,7 @@ inf_ttrace_target (void)
t->to_extra_thread_info = inf_ttrace_extra_thread_info;
t->to_pid_to_str = inf_ttrace_pid_to_str;
t->to_xfer_partial = inf_ttrace_xfer_partial;
+ t->to_get_ada_task_ptid = inf_ttrace_get_ada_task_ptid;
return t;
}