aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2009-04-27 11:58:06 -0400
committerJason Wessel <jason.wessel@windriver.com>2010-05-20 22:04:25 -0400
commit98ec1878cacb393975cba64f7392eece81716cb4 (patch)
treee56110f645daf77ef0a6b3206926915f11d52e78 /kernel
parent84c08fd61e2d21702337e9fe366e97cdf09bf797 (diff)
kgdb: remove post_primary_code references
Remove all the references to the kgdb_post_primary_code. This function serves no useful purpose because you can obtain the same information from the "struct kgdb_state *ks" from with in the debugger, if for some reason you want the data. Also remove the unintentional duplicate assignment for ks->ex_vector. Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/debug/debug_core.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c
index 1aed37b4c564..88a83a225374 100644
--- a/kernel/debug/debug_core.c
+++ b/kernel/debug/debug_core.c
@@ -203,12 +203,6 @@ int __weak kgdb_skipexception(int exception, struct pt_regs *regs)
203 return 0; 203 return 0;
204} 204}
205 205
206void __weak
207kgdb_post_primary_code(struct pt_regs *regs, int e_vector, int err_code)
208{
209 return;
210}
211
212/** 206/**
213 * kgdb_disable_hw_debug - Disable hardware debugging while we in kgdb. 207 * kgdb_disable_hw_debug - Disable hardware debugging while we in kgdb.
214 * @regs: Current &struct pt_regs. 208 * @regs: Current &struct pt_regs.
@@ -588,7 +582,6 @@ return_normal:
588 * At this point the primary processor is completely 582 * At this point the primary processor is completely
589 * in the debugger and all secondary CPUs are quiescent 583 * in the debugger and all secondary CPUs are quiescent
590 */ 584 */
591 kgdb_post_primary_code(ks->linux_regs, ks->ex_vector, ks->err_code);
592 dbg_deactivate_sw_breakpoints(); 585 dbg_deactivate_sw_breakpoints();
593 kgdb_single_step = 0; 586 kgdb_single_step = 0;
594 kgdb_contthread = current; 587 kgdb_contthread = current;
@@ -678,7 +671,6 @@ kgdb_handle_exception(int evector, int signo, int ecode, struct pt_regs *regs)
678 ks->cpu = raw_smp_processor_id(); 671 ks->cpu = raw_smp_processor_id();
679 ks->ex_vector = evector; 672 ks->ex_vector = evector;
680 ks->signo = signo; 673 ks->signo = signo;
681 ks->ex_vector = evector;
682 ks->err_code = ecode; 674 ks->err_code = ecode;
683 ks->kgdb_usethreadid = 0; 675 ks->kgdb_usethreadid = 0;
684 ks->linux_regs = regs; 676 ks->linux_regs = regs;