diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-02-07 02:29:55 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-02-07 02:29:55 +0000 |
| commit | d56a014b6e3794e617dc3f2405227fe4727afb9f (patch) | |
| tree | 8660402c63431509e04a04d12ffb9672a86b5aee /gnu | |
| parent | 4db106a906783a4496b1e5524efc71ea1a13a0fe (diff) | |
Notes
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/usr.bin/gdb/libgdb/fbsd-threads.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c index e9f83a90d5668..b88b73f1f2488 100644 --- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c +++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c @@ -1685,3 +1685,17 @@ ps_lcontinue(struct ps_prochandle *ph, lwpid_t lwpid) return PS_ERR; return PS_OK; } + +ps_err_e +ps_linfo(struct ps_prochandle *ph, lwpid_t lwpid, void *info) +{ + if (fbsd_thread_core) { + /* XXX should verify lwpid and make a pseudo lwp info */ + memset(info, 0, sizeof(struct ptrace_lwpinfo)); + return PS_OK; + } + + if (ptrace (PT_LWPINFO, lwpid, info, sizeof(struct ptrace_lwpinfo)) == -1) + return PS_ERR; + return PS_OK; +} |
