Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181066
b: refs/heads/master
c: b74ab70
h: refs/heads/master
v: v3
  • Loading branch information
Paul Mundt committed Dec 22, 2009
1 parent 661a16a commit bd0d45a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6c0ee6a4bba0e21eb0fb4de5bdac03c11b74242d
refs/heads/master: b74ab703b1326aafadb5604ff6200da62c61df49
9 changes: 9 additions & 0 deletions trunk/arch/sh/kernel/hw_breakpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,18 @@ BUILD_TRAP_HANDLER(breakpoint)
int __kprobes hw_breakpoint_exceptions_notify(struct notifier_block *unused,
unsigned long val, void *data)
{
struct die_args *args = data;

if (val != DIE_BREAKPOINT)
return NOTIFY_DONE;

/*
* If the breakpoint hasn't been triggered by the UBC, it's
* probably from a debugger, so don't do anything more here.
*/
if (args->trapnr != 0x1e0)
return NOTIFY_DONE;

return hw_breakpoint_handler(data);
}

Expand Down

0 comments on commit bd0d45a

Please sign in to comment.