Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include avoid macro confusion
details: https://anonhg.NetBSD.org/src/rev/774363335fb4
branches: trunk
changeset: 349126:774363335fb4
user: christos <christos%NetBSD.org@localhost>
date: Fri Nov 25 02:19:19 2016 +0000
description:
avoid macro confusion
diffstat:
sys/arch/arm/include/ptrace.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (24 lines):
diff -r 0feb4aa491db -r 774363335fb4 sys/arch/arm/include/ptrace.h
--- a/sys/arch/arm/include/ptrace.h Thu Nov 24 22:52:03 2016 +0000
+++ b/sys/arch/arm/include/ptrace.h Fri Nov 25 02:19:19 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptrace.h,v 1.8 2015/09/25 16:05:17 christos Exp $ */
+/* $NetBSD: ptrace.h,v 1.9 2016/11/25 02:19:19 christos Exp $ */
/*
* Copyright (c) 1995 Frank Lancaster
@@ -53,10 +53,10 @@
"PT_SETFPREGS",
#include <machine/reg.h>
-#define PTRACE_REG_PC(r) (r)->r_pc
-#define PTRACE_REG_SET_PC(r, v) (r)->r_pc = (v)
-#define PTRACE_REG_SP(r) (r)->r_sp
-#define PTRACE_REG_INTRV(r) (r)->r[0]
+#define PTRACE_REG_PC(_r) (_r)->r_pc
+#define PTRACE_REG_SET_PC(_r, _v) (_r)->r_pc = (_v)
+#define PTRACE_REG_SP(_r) (_r)->r_sp
+#define PTRACE_REG_INTRV(_r) (_r)->r[0]
#define PTRACE_BREAKPOINT ((const uint8_t[]) { 0xe7, 0xff, 0xff, 0xff })
#define PTRACE_BREAKPOINT_SIZE 4
- Prev by Date:
[src/trunk]: src/tests/lib/libpthread_dbg Fix format strings.
- Next by Date:
[src/trunk]: src/tests/kernel Add fpregs[12] in t_ptrace_wait{, 3, 4, 6, id, pid}
- Previous by Thread:
[src/trunk]: src/tests/lib/libpthread_dbg Fix format strings.
- Next by Thread:
[src/trunk]: src/tests/kernel Add fpregs[12] in t_ptrace_wait{, 3, 4, 6, id, pid}
- Indexes:
Home |
Main Index |
Thread Index |
Old Index