Change number of personalities for Linux sparc to 2
Minor other fixes
This commit is contained in:
4
NEWS
4
NEWS
@ -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
8
defs.h
@ -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
2
file.c
@ -457,7 +457,7 @@ int addr;
|
||||
else
|
||||
tprintf("...}");
|
||||
}
|
||||
#endif
|
||||
#endif /* LINUXSPARC */
|
||||
|
||||
static void
|
||||
realprintstat(tcp, statbuf)
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user