Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321314
b: refs/heads/master
c: b10d22d
h: refs/heads/master
v: v3
  • Loading branch information
Anton Vorontsov authored and Jason Wessel committed Jul 31, 2012
1 parent fe130e8 commit 843775b
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 07cd27bbd4d07af6c3e24ae479316a69e7935e1e
refs/heads/master: b10d22d6e8f76b9e94871aebe0fc62aab2748200
4 changes: 4 additions & 0 deletions trunk/kernel/debug/kdb/kdb_debugger.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/kdb.h>
#include <linux/kdebug.h>
#include <linux/export.h>
#include <linux/hardirq.h>
#include "kdb_private.h"
#include "../debug_core.h"

Expand Down Expand Up @@ -52,6 +53,9 @@ int kdb_stub(struct kgdb_state *ks)
if (atomic_read(&kgdb_setting_breakpoint))
reason = KDB_REASON_KEYBOARD;

if (in_nmi())
reason = KDB_REASON_NMI;

for (i = 0, bp = kdb_breakpoints; i < KDB_MAXBPT; i++, bp++) {
if ((bp->bp_enabled) && (bp->bp_addr == addr)) {
reason = KDB_REASON_BREAK;
Expand Down

0 comments on commit 843775b

Please sign in to comment.