diff --git a/plugins/debuggercommon/CMakeLists.txt b/plugins/debuggercommon/CMakeLists.txt --- a/plugins/debuggercommon/CMakeLists.txt +++ b/plugins/debuggercommon/CMakeLists.txt @@ -41,8 +41,7 @@ TYPE PLUGIN HEADER debuglog.h IDENTIFIER DEBUGGERCOMMON - CATEGORY_BASENAME "common" - DESCRIPTION "debuggers common" + CATEGORY_BASENAME "debuggercommon" ) ki18n_wrap_ui(debuggercommon_SRCS diff --git a/plugins/debuggercommon/midebugger.cpp b/plugins/debuggercommon/midebugger.cpp --- a/plugins/debuggercommon/midebugger.cpp +++ b/plugins/debuggercommon/midebugger.cpp @@ -340,7 +340,7 @@ void MIDebugger::processErrored(QProcess::ProcessError error) { - qCDebug(DEBUGGERCOMMON) << "Debugger ERRORED" << error; + qCWarning(DEBUGGERCOMMON) << "Debugger ERRORED" << error << m_process->errorString(); if(error == QProcess::FailedToStart) { KMessageBox::information( diff --git a/plugins/gdb/gdb.cpp b/plugins/gdb/gdb.cpp --- a/plugins/gdb/gdb.cpp +++ b/plugins/gdb/gdb.cpp @@ -61,6 +61,8 @@ QStringList arguments = extraArguments; arguments << QStringLiteral("--interpreter=mi2") << QStringLiteral("-quiet"); + QString fullCommand; + QUrl shell = config.readEntry(Config::DebuggerShellEntry, QUrl()); if(!shell.isEmpty()) { qCDebug(DEBUGGERGDB) << "have shell" << shell; @@ -85,14 +87,14 @@ m_process->setShellCommand(KShell::joinArgs(arguments)); } else { m_process->setProgram(m_debuggerExecutable, arguments); + fullCommand = m_debuggerExecutable + QLatin1Char(' '); } + fullCommand += arguments.join(QLatin1Char(' ')); m_process->start(); - qCDebug(DEBUGGERGDB) << "Starting GDB with command" << shell.toLocalFile() + QLatin1Char(' ') + m_debuggerExecutable - + QLatin1Char(' ') + arguments.join(QLatin1Char(' ')); + qCDebug(DEBUGGERGDB) << "Starting GDB with command" << fullCommand; qCDebug(DEBUGGERGDB) << "GDB process pid:" << m_process->pid(); - emit userCommandOutput(shell.toLocalFile() + QLatin1Char(' ') + m_debuggerExecutable - + QLatin1Char(' ') + arguments.join(QLatin1Char(' ')) + QLatin1Char('\n')); + emit userCommandOutput(fullCommand + QLatin1Char('\n')); return true; }