summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kdbg/gdbdriver.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/kdbg/gdbdriver.cpp b/kdbg/gdbdriver.cpp
index 16efe9a..933c191 100644
--- a/kdbg/gdbdriver.cpp
+++ b/kdbg/gdbdriver.cpp
@@ -2422,6 +2422,15 @@ std::list<DisassembledCode> GdbDriver::parseDisassemble(const char* output)
while (p != end)
{
DisassembledCode c;
+ // skip initial space or PC pointer ("=>", since gdb 7.1)
+ while (p != end) {
+ if (isspace(*p))
+ ++p;
+ else if (p[0] == '=' && p[1] == '>')
+ p += 2;
+ else
+ break;
+ }
const char* start = p;
// address
while (p != end && !isspace(*p))