Commit d613d828e8987a1f794378022f900b454fa95403
1 parent
f679c4985b
Exists in
master
and in
38 other branches
kdb: Remove all references to DOING_KGDB2
The DOING_KGDB2 was originally a state variable for one of the two ways to automatically transition from kdb to kgdb. Purge all these variables and just use one single state for the transition. Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Showing 4 changed files with 3 additions and 7 deletions Side-by-side Diff
kernel/debug/kdb/kdb_debugger.c
... | ... | @@ -126,10 +126,8 @@ |
126 | 126 | KDB_STATE_CLEAR(PAGER); |
127 | 127 | kdbnearsym_cleanup(); |
128 | 128 | if (error == KDB_CMD_KGDB) { |
129 | - if (KDB_STATE(DOING_KGDB) || KDB_STATE(DOING_KGDB2)) { | |
129 | + if (KDB_STATE(DOING_KGDB)) | |
130 | 130 | KDB_STATE_CLEAR(DOING_KGDB); |
131 | - KDB_STATE_CLEAR(DOING_KGDB2); | |
132 | - } | |
133 | 131 | return DBG_PASS_EVENT; |
134 | 132 | } |
135 | 133 | kdb_bp_install(ks->linux_regs); |
kernel/debug/kdb/kdb_io.c
kernel/debug/kdb/kdb_main.c
... | ... | @@ -1386,7 +1386,7 @@ |
1386 | 1386 | } |
1387 | 1387 | |
1388 | 1388 | if (result == KDB_CMD_KGDB) { |
1389 | - if (!(KDB_STATE(DOING_KGDB) || KDB_STATE(DOING_KGDB2))) | |
1389 | + if (!KDB_STATE(DOING_KGDB)) | |
1390 | 1390 | kdb_printf("Entering please attach debugger " |
1391 | 1391 | "or use $D#44+ or $3#33\n"); |
1392 | 1392 | break; |
kernel/debug/kdb/kdb_private.h
... | ... | @@ -21,7 +21,6 @@ |
21 | 21 | #define KDB_CMD_SS (-1003) |
22 | 22 | #define KDB_CMD_SSB (-1004) |
23 | 23 | #define KDB_CMD_KGDB (-1005) |
24 | -#define KDB_CMD_KGDB2 (-1006) | |
25 | 24 | |
26 | 25 | /* Internal debug flags */ |
27 | 26 | #define KDB_DEBUG_FLAG_BP 0x0002 /* Breakpoint subsystem debug */ |
... | ... | @@ -146,7 +145,6 @@ |
146 | 145 | * keyboard on this cpu */ |
147 | 146 | #define KDB_STATE_KEXEC 0x00040000 /* kexec issued */ |
148 | 147 | #define KDB_STATE_DOING_KGDB 0x00080000 /* kgdb enter now issued */ |
149 | -#define KDB_STATE_DOING_KGDB2 0x00100000 /* kgdb enter now issued */ | |
150 | 148 | #define KDB_STATE_KGDB_TRANS 0x00200000 /* Transition to kgdb */ |
151 | 149 | #define KDB_STATE_ARCH 0xff000000 /* Reserved for arch |
152 | 150 | * specific use */ |