Commit 78d09e78 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

disable pwd querying code, as it is unused and broken.

parent b8378498
......@@ -101,7 +101,7 @@ enum GdbCommandType
GdbShowVersion = 100,
GdbFileExecAndSymbols,
GdbQueryPwd,
//GdbQueryPwd,
GdbQuerySources,
GdbAsyncOutput2,
GdbStart,
......@@ -785,9 +785,11 @@ void GdbEngine::handleResult(const GdbResultRecord & record, int type,
case GdbExecJumpToLine:
handleExecJumpToLine(record);
break;
#if 0
case GdbQueryPwd:
handleQueryPwd(record);
break;
#endif
case GdbQuerySources:
handleQuerySources(record);
break;
......@@ -971,6 +973,7 @@ void GdbEngine::handleTargetCore(const GdbResultRecord &record)
);
}
#if 0
void GdbEngine::handleQueryPwd(const GdbResultRecord &record)
{
// FIXME: remove this special case as soon as 'pwd'
......@@ -989,6 +992,7 @@ void GdbEngine::handleQueryPwd(const GdbResultRecord &record)
m_pwd.chop(1);
#endif
#ifdef Q_OS_WIN
FIXME: this is broken
// ~"Working directory C:\\Users\\Thomas\\Documents\\WBTest3\\debug.\n"
m_pwd = record.data.findChild("consolestreamoutput").data();
m_pwd = m_pwd.trimmed();
......@@ -996,6 +1000,7 @@ void GdbEngine::handleQueryPwd(const GdbResultRecord &record)
debugMessage("PWD RESULT: " + m_pwd);
}
}
#endif
void GdbEngine::handleQuerySources(const GdbResultRecord &record)
{
......@@ -1670,7 +1675,7 @@ bool GdbEngine::startDebugger()
//sendCommand("handle SIGTERM pass nostop print");
sendCommand("set unwindonsignal on");
sendCommand("pwd", GdbQueryPwd);
//sendCommand("pwd", GdbQueryPwd);
sendCommand("set width 0");
sendCommand("set height 0");
......
......@@ -140,7 +140,7 @@ private:
//
int currentFrame() const;
QString currentWorkingDirectory() const { return m_pwd; }
//QString currentWorkingDirectory() const { return m_pwd; }
bool supportsThreads() const;
......@@ -220,7 +220,7 @@ private:
QByteArray m_pendingConsoleStreamOutput;
QByteArray m_pendingTargetStreamOutput;
QByteArray m_pendingLogStreamOutput;
QString m_pwd;
//QString m_pwd;
// contains the first token number for the current round
// of evaluation. Responses with older tokens are considers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment