Deleted Added
full compact
libthr_db.c (224693) libthr_db.c (241720)
1/*
2 * Copyright (c) 2004 Marcel Moolenaar
3 * Copyright (c) 2005 David Xu
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2004 Marcel Moolenaar
3 * Copyright (c) 2005 David Xu
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/lib/libthread_db/libthr_db.c 224693 2011-08-07 15:52:13Z marius $");
29__FBSDID("$FreeBSD: head/lib/libthread_db/libthr_db.c 241720 2012-10-19 05:43:38Z ed $");
30
31#include <proc_service.h>
32#include <stddef.h>
33#include <stdlib.h>
34#include <string.h>
35#include <sys/types.h>
36#include <sys/linker_set.h>
37#include <sys/ptrace.h>

--- 722 unchanged lines hidden (view full) ---

760 address, sizeof(*address));
761 if (ret != 0)
762 return (P2T(ret));
763
764 *address += offset;
765 return (TD_OK);
766}
767
30
31#include <proc_service.h>
32#include <stddef.h>
33#include <stdlib.h>
34#include <string.h>
35#include <sys/types.h>
36#include <sys/linker_set.h>
37#include <sys/ptrace.h>

--- 722 unchanged lines hidden (view full) ---

760 address, sizeof(*address));
761 if (ret != 0)
762 return (P2T(ret));
763
764 *address += offset;
765 return (TD_OK);
766}
767
768struct ta_ops libthr_db_ops = {
768static struct ta_ops libthr_db_ops = {
769 .to_init = pt_init,
770 .to_ta_clear_event = pt_ta_clear_event,
771 .to_ta_delete = pt_ta_delete,
772 .to_ta_event_addr = pt_ta_event_addr,
773 .to_ta_event_getmsg = pt_ta_event_getmsg,
774 .to_ta_map_id2thr = pt_ta_map_id2thr,
775 .to_ta_map_lwp2thr = pt_ta_map_lwp2thr,
776 .to_ta_new = pt_ta_new,

--- 27 unchanged lines hidden ---
769 .to_init = pt_init,
770 .to_ta_clear_event = pt_ta_clear_event,
771 .to_ta_delete = pt_ta_delete,
772 .to_ta_event_addr = pt_ta_event_addr,
773 .to_ta_event_getmsg = pt_ta_event_getmsg,
774 .to_ta_map_id2thr = pt_ta_map_id2thr,
775 .to_ta_map_lwp2thr = pt_ta_map_lwp2thr,
776 .to_ta_new = pt_ta_new,

--- 27 unchanged lines hidden ---