lkml.org 
[lkml]   [2009]   [Dec]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 09/37] kgdb,blackfin: Add in kgdb_arch_set_pc for blackfin
Date
The new debug core api requires all architectures that use to debug
core to implement a function to set the program counter.

CC: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
---
arch/blackfin/kernel/kgdb.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/blackfin/kernel/kgdb.c b/arch/blackfin/kernel/kgdb.c
index f1036b6..5965188 100644
--- a/arch/blackfin/kernel/kgdb.c
+++ b/arch/blackfin/kernel/kgdb.c
@@ -644,6 +644,11 @@ int kgdb_arch_remove_breakpoint(unsigned long addr, char *bundle)
return bfin_probe_kernel_write((char *)addr, bundle, BREAK_INSTR_SIZE);
}

+void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip)
+{
+ regs->retx = ip;
+}
+
int kgdb_arch_init(void)
{
kgdb_single_step = 0;
--
1.6.4.rc1


\
 
 \ /
  Last update: 2009-12-23 22:27    [W:0.312 / U:0.476 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site