File gcc44.diff of Package kdbg
--- kdbg/xsldbgdriver.cpp.sav 2008-12-18 22:01:58.000000000 +0100
+++ kdbg/xsldbgdriver.cpp 2009-05-29 16:29:45.000000000 +0200
@@ -768,7 +768,7 @@ parseVar(const char *&s)
} else if (strncmp(p, "= ", 2) == 0) {
/* we're processing the result of a "print command" */
/* find next line */
- char *nextLine = strchr(p, '\n');
+ const char *nextLine = strchr(p, '\n');
TRACE("Found print expr");
if (nextLine) {
--- kdbg/gdbdriver.cpp.sav 2008-11-17 23:17:55.000000000 +0100
+++ kdbg/gdbdriver.cpp 2009-05-29 16:31:26.000000000 +0200
@@ -669,7 +669,7 @@ static bool parseErrorMessage(const char
// skip warnings
while (strncmp(output, "warning:", 8) == 0)
{
- char* end = strchr(output+8, '\n');
+ const char* end = strchr(output+8, '\n');
if (end == 0)
output += strlen(output);
else
@@ -1880,8 +1880,10 @@ bool GdbDriver::parseThreadList(const ch
p++;
// there follows only whitespace
}
- char* end;
- id = strtol(p, &end, 10);
+ const char* end;
+ char* endtmp;
+ id = strtol(p, &endtmp, 10);
+ end = endtmp;
if (p == end) {
// syntax error: no number found; bail out
return true;