summaryrefslogtreecommitdiffstats
path: root/kdbg/gdbdriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdbg/gdbdriver.cpp')
-rw-r--r--kdbg/gdbdriver.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/kdbg/gdbdriver.cpp b/kdbg/gdbdriver.cpp
index ac86016..16efe9a 100644
--- a/kdbg/gdbdriver.cpp
+++ b/kdbg/gdbdriver.cpp
@@ -1048,7 +1048,8 @@ moreStrings:
}
}
// is the string continued?
- if (*p == ',') {
+ if (*p == ',')
+ {
// look ahead for another quote
const char* q = p+1;
while (isspace(*q))
@@ -1058,6 +1059,17 @@ moreStrings:
p = q;
goto moreStrings;
}
+
+ // some strings can end in <incomplete sequence ...>
+ if (strncmp(q, "<incomplete sequence", 20) == 0)
+ {
+ p = q+20;
+ while (*p != '\0' && *p != '>')
+ p++;
+ if (*p != '\0') {
+ p++; /* skip the '>' */
+ }
+ }
}
/* very long strings are followed by `...' */
if (*p == '.' && p[1] == '.' && p[2] == '.') {