thread_db.c (177490) | thread_db.c (180982) |
---|---|
1/* 2 * Copyright (c) 2004 David Xu <davidxu@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/* 2 * Copyright (c) 2004 David Xu <davidxu@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/lib/libthread_db/thread_db.c 177490 2008-03-22 05:40:44Z davidxu $"); | 28__FBSDID("$FreeBSD: head/lib/libthread_db/thread_db.c 180982 2008-07-30 00:59:19Z marcel $"); |
29 30#include <proc_service.h> 31#include <stddef.h> 32#include <thread_db.h> 33#include <unistd.h> 34#include <sys/cdefs.h> 35#include <sys/linker_set.h> 36 --- 202 unchanged lines hidden (view full) --- 239td_err_e 240td_thr_validate(const td_thrhandle_t *th) 241{ 242 const td_thragent_t *ta = th->th_ta; 243 return (ta->ta_ops->to_thr_validate(th)); 244} 245 246td_err_e | 29 30#include <proc_service.h> 31#include <stddef.h> 32#include <thread_db.h> 33#include <unistd.h> 34#include <sys/cdefs.h> 35#include <sys/linker_set.h> 36 --- 202 unchanged lines hidden (view full) --- 239td_err_e 240td_thr_validate(const td_thrhandle_t *th) 241{ 242 const td_thragent_t *ta = th->th_ta; 243 return (ta->ta_ops->to_thr_validate(th)); 244} 245 246td_err_e |
247td_thr_tls_get_addr(const td_thrhandle_t *th, void *linkmap, size_t offset, 248 void **address) | 247td_thr_tls_get_addr(const td_thrhandle_t *th, psaddr_t linkmap, size_t offset, 248 psaddr_t *address) |
249{ 250 const td_thragent_t *ta = th->th_ta; 251 return (ta->ta_ops->to_thr_tls_get_addr(th, linkmap, offset, address)); 252} 253 254/* FreeBSD specific extensions. */ 255 256td_err_e 257td_thr_sstep(const td_thrhandle_t *th, int step) 258{ 259 const td_thragent_t *ta = th->th_ta; 260 return (ta->ta_ops->to_thr_sstep(th, step)); 261} | 249{ 250 const td_thragent_t *ta = th->th_ta; 251 return (ta->ta_ops->to_thr_tls_get_addr(th, linkmap, offset, address)); 252} 253 254/* FreeBSD specific extensions. */ 255 256td_err_e 257td_thr_sstep(const td_thrhandle_t *th, int step) 258{ 259 const td_thragent_t *ta = th->th_ta; 260 return (ta->ta_ops->to_thr_sstep(th, step)); 261} |