Patch #1932 2007-03-26 10:59
domen
used if GDB is set to use HW breakpoints as default(b == hb)- Download
- 1932-used_if_GDB_is.patch (1.2 KB)
Index: src/plugins/debuggergdb/gdb_commands.h
===================================================================
--- src/plugins/debuggergdb/gdb_commands.h (revision 3761)
+++ src/plugins/debuggergdb/gdb_commands.h (working copy)
@@ -115,6 +115,8 @@
static wxRegEx reBT3(_T("\\)[ \t]+[atfrom]+[ \t]+(.*)"));
// Breakpoint 1 at 0x4013d6: file main.cpp, line 8.
static wxRegEx reBreakpoint(_T("Breakpoint ([0-9]+) at (0x[0-9A-Fa-f]+)"));
+// Hardware assisted breakpoint 1 at 0x4013d6: file main.cpp, line 8.
+static wxRegEx reHWBreakpoint(_T("Hardware assisted breakpoint ([0-9]+) at (0x[0-9A-Fa-f]+)"));
// Hardware watchpoint 1: expr
static wxRegEx reDataBreakpoint(_T("Hardware watchpoint ([0-9]+):.*"));
// eax 0x40e66666 1088841318
@@ -432,6 +434,11 @@
{
reDataBreakpoint.GetMatch(output, 1).ToLong(&m_BP->index);
}
+ else if (reHWBreakpoint.Matches(output))
+ {
+ reHWBreakpoint.GetMatch(output, 1).ToLong(&m_BP->index);
+ reHWBreakpoint.GetMatch(output, 2).ToULong(&m_BP->address, 16);
+ }
else
m_pDriver->Log(output); // one of the error responses
}
History
mandrav 2007-03-27 10:41
Patch applied.
mandrav 2007-03-27 10:41
Patch applied.