diff options
author | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:20 -0400 |
---|---|---|
committer | Jason Wessel <jason.wessel@windriver.com> | 2010-05-20 22:04:20 -0400 |
commit | e8861129d3c1a64e3c62f459aeb1cd54a55ab045 (patch) | |
tree | fb0e6a4b63708a909a2806ee1ebeca20bd629738 /arch/blackfin/kernel/kgdb.c | |
parent | 489022cc86ec8817a30226d00d35c67d74dd24a0 (diff) |
kgdb,blackfin: Add in kgdb_arch_set_pc for blackfin
The new debug core api requires all architectures that use to debug
core to implement a function to set the program counter.
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/kernel/kgdb.c')
-rw-r--r-- | 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 2c501ceb1e55..7367aea4ae59 100644 --- a/arch/blackfin/kernel/kgdb.c +++ b/arch/blackfin/kernel/kgdb.c | |||
@@ -439,6 +439,11 @@ int kgdb_validate_break_address(unsigned long addr) | |||
439 | return -EFAULT; | 439 | return -EFAULT; |
440 | } | 440 | } |
441 | 441 | ||
442 | void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip) | ||
443 | { | ||
444 | regs->retx = ip; | ||
445 | } | ||
446 | |||
442 | int kgdb_arch_init(void) | 447 | int kgdb_arch_init(void) |
443 | { | 448 | { |
444 | kgdb_single_step = 0; | 449 | kgdb_single_step = 0; |