aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2008-02-20 14:33:38 -0500
committerIngo Molnar <mingo@elte.hu>2008-04-17 14:05:39 -0400
commitb4b8ac524d9b6ed7229017145afa1d7afbea4a48 (patch)
treec1b8ef7b22ebc956c0effd0ad6b5a37290f86bda /kernel
parent64e9ee3095b61d0300ea548216a57d2536611309 (diff)
kgdb: fix optional arch functions and probe_kernel_*
Fix two regressions dealing with the kgdb core. 1) kgdb_skipexception and kgdb_post_primary_code are optional functions that are only required on archs that need special exception fixups. 2) The kernel address space scope must be set on any probe_kernel_* function or archs such as ARCH=arm will not allow access to the kernel memory space. As an example, it is required to allow the full kernel address space is when you the kernel debugger to inspect a system call. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/kgdb.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/kgdb.c b/kernel/kgdb.c
index 68aea78407e4..31425e0fbf20 100644
--- a/kernel/kgdb.c
+++ b/kernel/kgdb.c
@@ -200,6 +200,17 @@ int __weak kgdb_arch_init(void)
200 return 0; 200 return 0;
201} 201}
202 202
203int __weak kgdb_skipexception(int exception, struct pt_regs *regs)
204{
205 return 0;
206}
207
208void __weak
209kgdb_post_primary_code(struct pt_regs *regs, int e_vector, int err_code)
210{
211 return;
212}
213
203/** 214/**
204 * kgdb_disable_hw_debug - Disable hardware debugging while we in kgdb. 215 * kgdb_disable_hw_debug - Disable hardware debugging while we in kgdb.
205 * @regs: Current &struct pt_regs. 216 * @regs: Current &struct pt_regs.