summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--overlay/mgdb/gdb/winnt-nat.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c
index 5e7dc22..ab7dc83 100644
--- a/overlay/mgdb/gdb/winnt-nat.c
+++ b/overlay/mgdb/gdb/winnt-nat.c
@@ -118,6 +118,19 @@ static struct winnt_process * winnt_process_record(pid_t pid)
return 0;
}
+static ptid_t winnt_get_ada_task_ptid (struct target_ops * t, long lwp, long tid)
+{
+ ptid_t ptid;
+
+ (void)t;
+
+ ptid.pid = inferior_ptid.pid;
+ ptid.lwp = 0;
+ ptid.tid = lwp;
+
+ return ptid;
+}
+
static char * winnt_pid_to_exec_file (struct target_ops * t, int pid)
{
(void)t;
@@ -608,6 +621,7 @@ static target_ops * winnt_target_alloc (void)
t->to_thread_alive = winnt_thread_alive;
t->to_interrupt = winnt_interrupt;
+ t->to_get_ada_task_ptid = winnt_get_ada_task_ptid;
x86_use_watchpoints(t);