PERFORCE change 28893 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sun Apr 13 15:48:59 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=28893
Change 28893 by marcel at marcel_nfs on 2003/04/13 15:47:57
Get truss(1) in sync. This needs to be double-checked when
the EPC syscall code stabilizes. For now, it compiles.
Affected files ...
.. //depot/projects/ia64_epc/usr.bin/truss/ia64-fbsd.c#3 edit
Differences ...
==== //depot/projects/ia64_epc/usr.bin/truss/ia64-fbsd.c#3 (text+ko) ====
@@ -136,14 +136,14 @@
fprintf(trussinfo->outfile, "-- CANNOT READ REGISTERS --\n");
return;
}
- parm_offset = regs.r_gr[12] + 16;
+ parm_offset = regs.r_special.sp + 16;
/*
* FreeBSD has two special kinds of system call redirctions --
* SYS_syscall, and SYS___syscall. The former is the old syscall()
* routine, basicly; the latter is for quad-aligned arguments.
*/
- syscall_num = regs.r_gr[15];
+ syscall_num = regs.r_scratch.gr15; /* XXX double-check. */
switch (syscall_num) {
case SYS_syscall:
lseek(Procfd, parm_offset, SEEK_SET);
@@ -293,8 +293,8 @@
fprintf(trussinfo->outfile, "-- CANNOT READ REGISTERS --\n");
return (-1);
}
- retval = regs.r_gr[8];
- errorp = (regs.r_gr[10] != 0) ? 1 : 0;
+ retval = regs.r_scratch.gr8;
+ errorp = (regs.r_scratch.gr10 != 0) ? 1 : 0;
/*
* This code, while simpler than the initial versions I used, could
More information about the p4-projects
mailing list