diff options
author | midipix <writeonce@midipix.org> | 2019-09-08 16:28:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-09-08 17:22:53 +0000 |
commit | ba7fbe803e053e3bfbf41732036467f84c2d393b (patch) | |
tree | ce9f8ffe9fccd176c44f0ad1a4ec014586d8df26 /overlay/mgdb/gdb | |
parent | ff2294bec1e2d5cc2510914edae1bf7576ee5bf8 (diff) | |
download | chainport-ba7fbe803e053e3bfbf41732036467f84c2d393b.tar.bz2 chainport-ba7fbe803e053e3bfbf41732036467f84c2d393b.tar.xz |
mgdb: winnt_get_ada_task_ptid(): initial implementation and integration.
Diffstat (limited to 'overlay/mgdb/gdb')
-rw-r--r-- | overlay/mgdb/gdb/winnt-nat.c | 14 |
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); |