diff -up kdbg-2.1.1/kdbg/gdbdriver.cpp.gcc44 kdbg-2.1.1/kdbg/gdbdriver.cpp --- kdbg-2.1.1/kdbg/gdbdriver.cpp.gcc44 2008-11-17 23:17:55.000000000 +0100 +++ kdbg-2.1.1/kdbg/gdbdriver.cpp 2009-03-02 11:07:26.000000000 +0100 @@ -133,7 +133,7 @@ GdbDriver::GdbDriver() : #ifndef NDEBUG // check command info array - char* perc; + const char* perc; for (int i = 0; i < NUM_CMDS; i++) { // must be indexable by DbgCommand values, i.e. sorted by DbgCommand values assert(i == cmds[i].cmd); @@ -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,8 @@ bool GdbDriver::parseThreadList(const ch p++; // there follows only whitespace } - char* end; - id = strtol(p, &end, 10); + const char* end; + id = strtol(p,(char**)&end, 10); if (p == end) { // syntax error: no number found; bail out return true; diff -up kdbg-2.1.1/kdbg/xsldbgdriver.cpp.gcc44 kdbg-2.1.1/kdbg/xsldbgdriver.cpp --- kdbg-2.1.1/kdbg/xsldbgdriver.cpp.gcc44 2009-03-02 11:08:09.000000000 +0100 +++ kdbg-2.1.1/kdbg/xsldbgdriver.cpp 2009-03-02 11:09:08.000000000 +0100 @@ -114,7 +114,7 @@ DebuggerDriver(), m_gdbMajor(2), m_gdbMi #ifndef NDEBUG // check command info array - char *perc; + const char *perc; for (int i = 0; i < NUM_CMDS; i++) { // must be indexable by DbgCommand values, i.e. sorted by DbgCommand values @@ -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) {