* Re: a few small strace patches
@ 1996-05-19 10:53 Thomas Bogendoerfer
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 1996-05-19 10:53 UTC (permalink / raw)
> Support for Linux/Alpha is now included in strace 3.0.11. You
> can get it from ftp://ftp.std.com/pub/jsr/strace-3.0.11.tar.gz.
the right URL is ftp://ftp.std.com/pub/jrs/strace-3.0.11.tar.gz.
ftp://ftp.std.com/pub/jrs/strace-3.0.12.tar.gz, which will be
out in the next days.
Thomas.
--
That process _deserves_ to die ("My name is Linus Torvalds, prepare to
die"). [Linus Torvalds on linux-kernel]
^ permalink raw reply [flat|nested] 3+ messages in thread* a few small strace patches
@ 1996-05-17 15:44 Richard Henderson
1996-05-18 23:08 ` Thomas Bogendoerfer
0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 1996-05-17 15:44 UTC (permalink / raw)
I ran across some 32/64 bit problems. The system call
return value needs to be long to handle the vm addresses
returned from, e.g. brk and mmap.
r~
--- defs.h.orig Fri May 17 00:31:45 1996
+++ defs.h Fri May 17 00:46:32 1996
@@ -105,7 +105,7 @@
int u_nargs; /* System call arguments */
long u_arg[MAX_ARGS]; /* System call arguments */
int u_error; /* Error code */
- int u_rval; /* (first) return value */
+ long u_rval; /* (first) return value */
FILE *outf; /* Output file for this process */
char *auxstr; /* Auxiliary info from syscall (see RVAL_STR) */
struct timeval stime; /* System time usage as of last process wait */
--- syscall.c.orig Fri May 17 00:47:51 1996
+++ syscall.c Fri May 17 00:48:14 1996
@@ -678,7 +678,7 @@
if (u_error)
tprintf("= -1 (errno %d)", u_error);
else
- tprintf("= %#x", tcp->u_rval);
+ tprintf("= %#lx", tcp->u_rval);
}
else if (!(sys_res & RVAL_NONE) && u_error) {
#ifdef LINUX
@@ -717,16 +717,16 @@
else {
switch (sys_res & RVAL_MASK) {
case RVAL_HEX:
- tprintf("= %#x", tcp->u_rval);
+ tprintf("= %#lx", tcp->u_rval);
break;
case RVAL_OCTAL:
- tprintf("= %#o", tcp->u_rval);
+ tprintf("= %#lo", tcp->u_rval);
break;
case RVAL_UDECIMAL:
- tprintf("= %u", tcp->u_rval);
+ tprintf("= %lu", tcp->u_rval);
break;
case RVAL_DECIMAL:
- tprintf("= %d", tcp->u_rval);
+ tprintf("= %ld", tcp->u_rval);
break;
default:
fprintf(stderr,
--- util.c.orig Fri May 17 00:31:46 1996
+++ util.c Fri May 17 00:40:22 1996
@@ -723,7 +723,7 @@
long off;
long *res;
{
- int val;
+ long val;
#ifdef SUNOS4_KERNEL_ARCH_KLUDGE
{
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: a few small strace patches
1996-05-17 15:44 Richard Henderson
@ 1996-05-18 23:08 ` Thomas Bogendoerfer
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 1996-05-18 23:08 UTC (permalink / raw)
> I ran across some 32/64 bit problems. The system call
> return value needs to be long to handle the vm addresses
> returned from, e.g. brk and mmap.
thanks for the report. Rick Sladkey has already fixed the problem
with u_rval in strace-3.0.11. Only the bug in util.c is vital.
I will forward your bugreport to him.
Maybe some of you have alread read the announce from Rick on
the kernel mailing list.
Support for Linux/Alpha is now included in strace 3.0.11. You
can get it from ftp://ftp.std.com/pub/jsr/strace-3.0.11.tar.gz.
Thomas.
--
That process _deserves_ to die ("My name is Linus Torvalds, prepare to
die"). [Linus Torvalds on linux-kernel]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-05-19 10:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-19 10:53 a few small strace patches Thomas Bogendoerfer
-- strict thread matches above, loose matches on Subject: below --
1996-05-17 15:44 Richard Henderson
1996-05-18 23:08 ` Thomas Bogendoerfer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox