Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196335
b: refs/heads/master
c: 489022c
h: refs/heads/master
i:
  196333: 7d0306c
  196331: 16bf627
  196327: 408ad71
  196319: d87a947
v: v3
  • Loading branch information
Jason Wessel committed May 21, 2010
1 parent abec1b6 commit 4520f81
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c75fbb05b523571c0fdc48d4b968b73f0e20acbb
refs/heads/master: 489022cc86ec8817a30226d00d35c67d74dd24a0
14 changes: 13 additions & 1 deletion trunk/arch/sh/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,18 @@ int kgdb_arch_handle_exception(int e_vector, int signo, int err_code,
return -1;
}

unsigned long kgdb_arch_pc(int exception, struct pt_regs *regs)
{
if (exception == 60)
return instruction_pointer(regs) - 2;
return instruction_pointer(regs);
}

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

/*
* The primary entry points for the kgdb debug trap table entries.
*/
Expand All @@ -247,7 +259,7 @@ BUILD_TRAP_HANDLER(singlestep)

local_irq_save(flags);
regs->pc -= instruction_size(__raw_readw(regs->pc - 4));
kgdb_handle_exception(vec >> 2, SIGTRAP, 0, regs);
kgdb_handle_exception(0, SIGTRAP, 0, regs);
local_irq_restore(flags);
}

Expand Down

0 comments on commit 4520f81

Please sign in to comment.