Change number of personalities for Linux sparc to 2

Minor other fixes
This commit is contained in:
Wichert Akkerman
1999-04-18 22:50:50 +00:00
parent 7a1f0e95db
commit b859bea10a
4 changed files with 12 additions and 5 deletions

4
NEWS
View File

@ -1,5 +1,5 @@
Changes in 4.0
==============
Changes in 3.99
===============
* New maintainer
* add support for more Linux architectures (powerpc, sparc, arm)
* support lots more Linux syscalls

8
defs.h
View File

@ -29,6 +29,10 @@
* $Id$
*/
#ifdef linux
#include <features.h>
#endif
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
@ -104,7 +108,7 @@ extern int ptrace();
#endif /* !SVR4 */
#ifdef LINUX
#if !defined(LINUXSPARC) || !defined(__GLIBC__)
#if !defined(__GLIBC__)
#define PTRACE_PEEKUSER PTRACE_PEEKUSR
#define PTRACE_POKEUSER PTRACE_POKEUSR
#endif
@ -124,7 +128,7 @@ extern int ptrace();
#include <linux/a.out.h>
#include <asm/psr.h>
#undef SUPPORTED_PERSONALITIES
#define SUPPORTED_PERSONALITIES 3
#define SUPPORTED_PERSONALITIES 2
#endif /* LINUXSPARC */
/* Trace Control Block */

2
file.c
View File

@ -457,7 +457,7 @@ int addr;
else
tprintf("...}");
}
#endif
#endif /* LINUXSPARC */
static void
realprintstat(tcp, statbuf)

View File

@ -1038,6 +1038,9 @@ struct tcb *tcp;
int i;
tcp->u_nargs = sysent[tcp->scno].nargs;
for (i = 0; i < tcp->u_nargs; i++) {
/* WTA: if scno is out-of-bounds this will bomb. Add range-check
* for scno somewhere above here!
*/
if (upeek(pid, REG_A0+i, &tcp->u_arg[i]) < 0)
return -1;
}