From ba7fbe803e053e3bfbf41732036467f84c2d393b Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 8 Sep 2019 16:28:30 +0000 Subject: mgdb: winnt_get_ada_task_ptid(): initial implementation and integration. --- overlay/mgdb/gdb/winnt-nat.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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); -- cgit v1.2.3