libpthread_db.c (209689) | libpthread_db.c (241720) |
---|---|
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/libpthread_db.c 209689 2010-07-04 12:08:04Z kib $"); | 28__FBSDID("$FreeBSD: head/lib/libthread_db/libpthread_db.c 241720 2012-10-19 05:43:38Z ed $"); |
29 30#include <stddef.h> 31#include <stdlib.h> 32#include <string.h> 33#include <unistd.h> 34#include <pthread.h> 35#include <sys/types.h> 36#include <sys/linker_set.h> --- 1065 unchanged lines hidden (view full) --- 1102 address, sizeof(*address)); 1103 if (ret != 0) 1104 return (P2T(ret)); 1105 1106 *address += offset; 1107 return (TD_OK); 1108} 1109 | 29 30#include <stddef.h> 31#include <stdlib.h> 32#include <string.h> 33#include <unistd.h> 34#include <pthread.h> 35#include <sys/types.h> 36#include <sys/linker_set.h> --- 1065 unchanged lines hidden (view full) --- 1102 address, sizeof(*address)); 1103 if (ret != 0) 1104 return (P2T(ret)); 1105 1106 *address += offset; 1107 return (TD_OK); 1108} 1109 |
1110struct ta_ops libpthread_db_ops = { | 1110static struct ta_ops libpthread_db_ops = { |
1111 .to_init = pt_init, 1112 .to_ta_clear_event = pt_ta_clear_event, 1113 .to_ta_delete = pt_ta_delete, 1114 .to_ta_event_addr = pt_ta_event_addr, 1115 .to_ta_event_getmsg = pt_ta_event_getmsg, 1116 .to_ta_map_id2thr = pt_ta_map_id2thr, 1117 .to_ta_map_lwp2thr = pt_ta_map_lwp2thr, 1118 .to_ta_new = pt_ta_new, --- 27 unchanged lines hidden --- | 1111 .to_init = pt_init, 1112 .to_ta_clear_event = pt_ta_clear_event, 1113 .to_ta_delete = pt_ta_delete, 1114 .to_ta_event_addr = pt_ta_event_addr, 1115 .to_ta_event_getmsg = pt_ta_event_getmsg, 1116 .to_ta_map_id2thr = pt_ta_map_id2thr, 1117 .to_ta_map_lwp2thr = pt_ta_map_lwp2thr, 1118 .to_ta_new = pt_ta_new, --- 27 unchanged lines hidden --- |