Skip to content

Commit

Permalink
kgdb,blackfin: Add in kgdb_arch_set_pc for blackfin
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Wessel committed May 21, 2010
1 parent 489022c commit e886112
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions arch/blackfin/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ int kgdb_validate_break_address(unsigned long addr)
return -EFAULT;
}

void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip)
{
regs->retx = ip;
}

int kgdb_arch_init(void)
{
kgdb_single_step = 0;
Expand Down

0 comments on commit e886112

Please sign in to comment.