Deleted Added
full compact
mips-freebsd.c (289239) mips-freebsd.c (294849)
1/*
2 * Copyright 1998 Sean Eric Fagan
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
1/*
2 * Copyright 1998 Sean Eric Fagan
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 */
31
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/usr.bin/truss/mips-freebsd.c 289239 2015-10-13 18:23:51Z bdrewery $");
33__FBSDID("$FreeBSD: head/usr.bin/truss/mips-freebsd.c 294849 2016-01-26 19:07:09Z jhb $");
34
35/* FreeBSD/mips-specific system call handling. */
36
37#include <sys/ptrace.h>
38#include <sys/syscall.h>
39
40#include <machine/frame.h>
41#include <machine/reg.h>
42
43#include <stdio.h>
34
35/* FreeBSD/mips-specific system call handling. */
36
37#include <sys/ptrace.h>
38#include <sys/syscall.h>
39
40#include <machine/frame.h>
41#include <machine/reg.h>
42
43#include <stdio.h>
44#include <sysdecode.h>
44
45#include "truss.h"
46
45
46#include "truss.h"
47
47#include "freebsd_syscalls.h"
48
49static int
50mips_fetch_args(struct trussinfo *trussinfo, u_int narg)
51{
52 struct ptrace_io_desc iorequest;
53 struct reg regs;
54 struct current_syscall *cs;
55 lwpid_t tid;
56 u_int i, reg;

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

127
128
129static struct procabi mips_freebsd = {
130#ifdef __mips_n64
131 "FreeBSD ELF64",
132#else
133 "FreeBSD ELF32",
134#endif
48static int
49mips_fetch_args(struct trussinfo *trussinfo, u_int narg)
50{
51 struct ptrace_io_desc iorequest;
52 struct reg regs;
53 struct current_syscall *cs;
54 lwpid_t tid;
55 u_int i, reg;

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

126
127
128static struct procabi mips_freebsd = {
129#ifdef __mips_n64
130 "FreeBSD ELF64",
131#else
132 "FreeBSD ELF32",
133#endif
135 syscallnames,
136 nitems(syscallnames),
134 FREEBSD,
137 mips_fetch_args,
138 mips_fetch_retval
139};
140
141PROCABI(mips_freebsd);
135 mips_fetch_args,
136 mips_fetch_retval
137};
138
139PROCABI(mips_freebsd);