diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2010-07-04 12:08:04 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2010-07-04 12:08:04 +0000 |
| commit | 098d0537f20da8b3ed427bdb2a8ca846c9e53017 (patch) | |
| tree | a8c79439938f105976c877e4960497e25bc3e397 /lib/libthread_db/libpthread_db.c | |
| parent | 8a26007903226414add55b901f79246ee265874c (diff) | |
Notes
Diffstat (limited to 'lib/libthread_db/libpthread_db.c')
| -rw-r--r-- | lib/libthread_db/libpthread_db.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libthread_db/libpthread_db.c b/lib/libthread_db/libpthread_db.c index 65478a772962..31ea15d8ad09 100644 --- a/lib/libthread_db/libpthread_db.c +++ b/lib/libthread_db/libpthread_db.c @@ -570,7 +570,7 @@ pt_thr_validate(const td_thrhandle_t *th) } static td_err_e -pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) +pt_thr_old_get_info(const td_thrhandle_t *th, td_old_thrinfo_t *info) { const td_thragent_t *ta = th->th_ta; struct ptrace_lwpinfo linfo; @@ -659,6 +659,16 @@ pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) return (0); } +static td_err_e +pt_thr_get_info(const td_thrhandle_t *th, td_thrinfo_t *info) +{ + td_err_e e; + + e = pt_thr_old_get_info(th, (td_old_thrinfo_t *)info); + bzero(&info->ti_siginfo, sizeof(info->ti_siginfo)); + return (e); +} + #ifdef __i386__ static td_err_e pt_thr_getxmmregs(const td_thrhandle_t *th, char *fxsave) @@ -1114,6 +1124,7 @@ struct ta_ops libpthread_db_ops = { .to_thr_dbsuspend = pt_thr_dbsuspend, .to_thr_event_enable = pt_thr_event_enable, .to_thr_event_getmsg = pt_thr_event_getmsg, + .to_thr_old_get_info = pt_thr_old_get_info, .to_thr_get_info = pt_thr_get_info, .to_thr_getfpregs = pt_thr_getfpregs, .to_thr_getgregs = pt_thr_getgregs, |
