Fix KGDB disallowing actual use of the hardware breakpoints in spite of them
being supported by an architecture (and vice versa) due to the missing parens
around KGDB_HW_BREAKPOINT flag test.
Signed-off-by: Sergei Shtylyov <[EMAIL PROTECTED]>
---
The patch is against the top of KGDB patchset in the linux_2_6_21_uprev branch.
Index: linux-2.6/kernel/kgdb.c
===================================================================
--- linux-2.6.orig/kernel/kgdb.c
+++ linux-2.6/kernel/kgdb.c
@@ -1313,7 +1313,7 @@ int kgdb_handle_exception(int ex_vector,
/* Test if this is a hardware breakpoint, and
* if we support it. */
if (*bpt_type == '1' &&
- !kgdb_ops->flags & KGDB_HW_BREAKPOINT)
+ !(kgdb_ops->flags & KGDB_HW_BREAKPOINT))
/* Unsupported. */
break;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport