Deleted Added
full compact
libpthread_md.c (181059) libpthread_md.c (181341)
1/*
2 * Copyright (c) 2007 Olivier Houchard
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) 2007 Olivier Houchard
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/arch/arm/libpthread_md.c 181059 2008-07-31 16:26:58Z marcel $");
28__FBSDID("$FreeBSD: head/lib/libthread_db/arch/arm/libpthread_md.c 181341 2008-08-06 03:14:18Z marcel $");
29
30#include <sys/types.h>
31#include <string.h>
32#include <thread_db.h>
33
34#include "libpthread_db.h"
35
36void

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

80 r->r[12] = gr[_REG_R12];
81 r->r_sp = gr[_REG_SP];
82 r->r_lr = gr[_REG_LR];
83 r->r_pc = gr[_REG_PC];
84 r->r_cpsr = gr[_REG_CPSR];
85}
86
87void
29
30#include <sys/types.h>
31#include <string.h>
32#include <thread_db.h>
33
34#include "libpthread_db.h"
35
36void

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

80 r->r[12] = gr[_REG_R12];
81 r->r_sp = gr[_REG_SP];
82 r->r_lr = gr[_REG_LR];
83 r->r_pc = gr[_REG_PC];
84 r->r_cpsr = gr[_REG_CPSR];
85}
86
87void
88pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc)
88pt_fpreg_to_ucontext(const struct fpreg *r __unused, ucontext_t *uc)
89{
90 mcontext_t *mc = &uc->uc_mcontext;
91
92 /* XXX */
93 memset(&mc->__fpu.__fpregs, 0, sizeof(__fpregset_t));
94}
95
96void
89{
90 mcontext_t *mc = &uc->uc_mcontext;
91
92 /* XXX */
93 memset(&mc->__fpu.__fpregs, 0, sizeof(__fpregset_t));
94}
95
96void
97pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r)
97pt_ucontext_to_fpreg(const ucontext_t *uc __unused, struct fpreg *r)
98{
99
100 /* XXX */
101 memset(r, 0, sizeof(*r));
102}
103
104void
105pt_md_init(void)
106{
107}
108
109int
98{
99
100 /* XXX */
101 memset(r, 0, sizeof(*r));
102}
103
104void
105pt_md_init(void)
106{
107}
108
109int
110pt_reg_sstep(struct reg *reg, int step)
110pt_reg_sstep(struct reg *reg __unused, int step __unused)
111{
112
113 /* XXX */
114 return (0);
115}
111{
112
113 /* XXX */
114 return (0);
115}