kgdb compile fix for 3.0 rc7
Subsystems (2)
PATCH 1/1 sparc,kgdbts: fix compile regression with kgdb test suite
In reply to Jason WesselCommit 63ab25ebbc (kgdbts: unify/generalize gdb breakpoint adjustment) introduced a compile regression on sparc.
kgdbts.c: In function 'check_and_rewind_pc':
kgdbts.c:307: error: implicit declaration of function 'instruction_pointer_set'
Simply add the correct macro definition for instruction pointer on the Sparc architecture.
--- arch/sparc/include/asm/ptrace.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
arch/sparc/include/asm/ptrace.h +1 -0
@@ -205,6 +205,7 @@ do { current_thread_info()->syscall_noerror = 1; \ } while (0)#define user_mode (regs) (!((regs)->tstate & TSTATE_PRIV))#define instruction_pointer (regs) ((regs)->tpc) +#define instruction_pointer_set (regs, val) ((regs)->tpc = (val))#define user_stack_pointer (regs) ((regs)->u_regs[UREG_FP])#define regs_return_value (regs) ((regs)->u_regs[UREG_I0])#ifdef CONFIG_SMP
Signature · 1 line
1.7.1
Linus, please pull the for_linus branch to pick up a sparc compile regression that was picked up early in the 3.0 cycle.
git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_linus
Thanks,
Jason.
---
The following changes since commit 3a5c3743f15f27237ab025736a981e2d0c9fdfed:
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 (2011-07-18 13:29:26 -0700)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_linus
Jason Wessel (1):
sparc,kgdbts: fix compile regression with kgdb test suite
arch/sparc/include/asm/ptrace.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)