Deleted Added
full compact
powerpc-freebsd.c (286937) powerpc-freebsd.c (286938)
1/*
2 * Copyright 2006 Peter Grehan <grehan@freebsd.org>
3 * Copyright 2005 Orlando Bassotto <orlando@break.net>
4 * Copyright 1998 Sean Eric Fagan
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:

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

22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#ifndef lint
29static const char rcsid[] =
1/*
2 * Copyright 2006 Peter Grehan <grehan@freebsd.org>
3 * Copyright 2005 Orlando Bassotto <orlando@break.net>
4 * Copyright 1998 Sean Eric Fagan
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:

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

22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#ifndef lint
29static const char rcsid[] =
30 "$FreeBSD: head/usr.bin/truss/powerpc-fbsd.c 286937 2015-08-19 19:59:42Z jhb $";
30 "$FreeBSD: head/usr.bin/truss/powerpc-fbsd.c 286938 2015-08-19 20:02:03Z jhb $";
31#endif /* not lint */
32
33/*
34 * FreeBSD/powerpc-specific system call handling. This is probably the most
35 * complex part of the entire truss program, although I've got lots of
36 * it handled relatively cleanly now. The system call names are generated
37 * automatically, thanks to /usr/src/sys/kern/syscalls.master. The
38 * names used for the various structures are confusing, I sadly admit.

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

313 retval = regs.fixreg[4];
314
315 /*
316 * Here, we only look for arguments that have OUT masked in --
317 * otherwise, they were handled in the syscall_entry function.
318 */
319 for (i = 0; i < sc->nargs; i++) {
320 char *temp;
31#endif /* not lint */
32
33/*
34 * FreeBSD/powerpc-specific system call handling. This is probably the most
35 * complex part of the entire truss program, although I've got lots of
36 * it handled relatively cleanly now. The system call names are generated
37 * automatically, thanks to /usr/src/sys/kern/syscalls.master. The
38 * names used for the various structures are confusing, I sadly admit.

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

313 retval = regs.fixreg[4];
314
315 /*
316 * Here, we only look for arguments that have OUT masked in --
317 * otherwise, they were handled in the syscall_entry function.
318 */
319 for (i = 0; i < sc->nargs; i++) {
320 char *temp;
321
321 if (sc->args[i].type & OUT) {
322 /*
323 * If an error occurred, then don't bother
324 * getting the data; it may not be valid.
325 */
326 if (errorp) {
327 asprintf(&temp, "0x%lx",
328 fsc->args[sc->args[i].offset]);

--- 24 unchanged lines hidden ---
322 if (sc->args[i].type & OUT) {
323 /*
324 * If an error occurred, then don't bother
325 * getting the data; it may not be valid.
326 */
327 if (errorp) {
328 asprintf(&temp, "0x%lx",
329 fsc->args[sc->args[i].offset]);

--- 24 unchanged lines hidden ---