libpthread_md.c (169985) | libpthread_md.c (181059) |
---|---|
1/* 2 * Copyright (c) 2004 David Xu <davidxu@freebsd.org> 3 * Copyright (c) 2004 Marcel Moolenaar 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 David Xu <davidxu@freebsd.org> 3 * Copyright (c) 2004 Marcel Moolenaar 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/arch/amd64/libpthread_md.c 169985 2007-05-25 13:43:14Z delphij $"); | 29__FBSDID("$FreeBSD: head/lib/libthread_db/arch/amd64/libpthread_md.c 181059 2008-07-31 16:26:58Z marcel $"); |
30 31#include <sys/procfs.h> 32#include <string.h> | 30 31#include <sys/procfs.h> 32#include <string.h> |
33#include <thread_db.h> |
|
33#include <ucontext.h> 34 | 34#include <ucontext.h> 35 |
36#include "libpthread_db.h" 37 |
|
35void 36pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) 37{ 38 mcontext_t *mc = &uc->uc_mcontext; 39 40 mc->mc_rdi = r->r_rdi; 41 mc->mc_rsi = r->r_rsi; 42 mc->mc_rdx = r->r_rdx; --- 76 unchanged lines hidden --- | 38void 39pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) 40{ 41 mcontext_t *mc = &uc->uc_mcontext; 42 43 mc->mc_rdi = r->r_rdi; 44 mc->mc_rsi = r->r_rsi; 45 mc->mc_rdx = r->r_rdx; --- 76 unchanged lines hidden --- |