Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/sys use HAVE_FPREGS not HAVE_FPGPREGS and mov...
details: https://anonhg.NetBSD.org/src/rev/dadc1ce0690b
branches: trunk
changeset: 839224:dadc1ce0690b
user: scole <scole%NetBSD.org@localhost>
date: Sat Feb 09 23:03:01 2019 +0000
description:
use HAVE_FPREGS not HAVE_FPGPREGS and move some register_t inside proper #define. fixes ia64 build. ok <kamil>
diffstat:
tests/lib/libc/sys/t_ptrace_wait.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r 017b1265d5b9 -r dadc1ce0690b tests/lib/libc/sys/t_ptrace_wait.c
--- a/tests/lib/libc/sys/t_ptrace_wait.c Sat Feb 09 21:43:23 2019 +0000
+++ b/tests/lib/libc/sys/t_ptrace_wait.c Sat Feb 09 23:03:01 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ptrace_wait.c,v 1.75 2019/02/08 03:08:00 kamil Exp $ */
+/* $NetBSD: t_ptrace_wait.c,v 1.76 2019/02/09 23:03:01 scole Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.75 2019/02/08 03:08:00 kamil Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.76 2019/02/09 23:03:01 scole Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -2613,7 +2613,7 @@
/// ----------------------------------------------------------------------------
-#if defined(HAVE_GPREGS) || defined(HAVE_FPGPREGS)
+#if defined(HAVE_GPREGS) || defined(HAVE_FPREGS)
static void
access_regs(const char *regset, const char *aux)
{
@@ -2625,12 +2625,12 @@
#endif
#if defined(HAVE_GPREGS)
struct reg gpr;
+ register_t rgstr;
#endif
#if defined(HAVE_FPREGS)
struct fpreg fpr;
#endif
- register_t rgstr;
-
+
#if !defined(HAVE_GPREGS)
if (strcmp(regset, "regs") == 0)
atf_tc_fail("Impossible test scenario!");
Home |
Main Index |
Thread Index |
Old Index