-Changes in 4.0
-==============
+Changes in 3.99
+===============
* New maintainer
* add support for more Linux architectures (powerpc, sparc, arm)
* support lots more Linux syscalls
* $Id$
*/
+#ifdef linux
+#include <features.h>
+#endif
+
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#endif /* !SVR4 */
#ifdef LINUX
-#if !defined(LINUXSPARC) || !defined(__GLIBC__)
+#if !defined(__GLIBC__)
#define PTRACE_PEEKUSER PTRACE_PEEKUSR
#define PTRACE_POKEUSER PTRACE_POKEUSR
#endif
#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 */
else
tprintf("...}");
}
-#endif
+#endif /* LINUXSPARC */
static void
realprintstat(tcp, statbuf)
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;
}