Deleted Added
full compact
libpthread_db.c (146818) libpthread_db.c (155387)
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 146818 2005-05-31 09:43:04Z dfr $");
28__FBSDID("$FreeBSD: head/lib/libthread_db/libpthread_db.c 155387 2006-02-06 11:54:19Z davidxu $");
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/kse.h>

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

592 const td_thragent_t *ta = th->th_ta;
593 psaddr_t tcb_addr;
594 uint32_t dflags;
595 int state;
596 int ret;
597
598 TDBG_FUNC();
599
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/kse.h>

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

592 const td_thragent_t *ta = th->th_ta;
593 psaddr_t tcb_addr;
594 uint32_t dflags;
595 int state;
596 int ret;
597
598 TDBG_FUNC();
599
600 bzero(info, sizeof(*info));
600 ret = pt_validate(th);
601 if (ret)
602 return (ret);
603
604 memset(info, 0, sizeof(*info));
605 if (ta->map[th->th_tid].type == PT_LWP) {
606 info->ti_type = TD_THR_SYSTEM;
607 info->ti_lid = ta->map[th->th_tid].lwp;

--- 505 unchanged lines hidden ---
601 ret = pt_validate(th);
602 if (ret)
603 return (ret);
604
605 memset(info, 0, sizeof(*info));
606 if (ta->map[th->th_tid].type == PT_LWP) {
607 info->ti_type = TD_THR_SYSTEM;
608 info->ti_lid = ta->map[th->th_tid].lwp;

--- 505 unchanged lines hidden ---