Commit 747b8d48 authored by Tobias Hunger's avatar Tobias Hunger

Debugger: Remove dead code

Change-Id: Id626cd25efec5fd00ccd87fac4de429c9cdabf8b
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 4f9594ad
......@@ -260,42 +260,6 @@ QVariant cdbIntegerValue(const QByteArray &t)
return converted;
}
/* \code
0:002> ~ [Debugger-Id] Id: <hex pid> <hex tid> Suspends count thread environment block add state name
0 Id: 133c.1374 Suspend: 1 Teb: 000007ff`fffdd000 Unfrozen
. 2 Id: 133c.1160 Suspend: 1 Teb: 000007ff`fffd9000 Unfrozen "QThread"
3 Id: 133c.38c Suspend: 1 Teb: 000007ff`fffd7000 Unfrozen "QThread"
\endcode */
static inline bool parseThread(QByteArray line, ThreadData *thread, bool *current)
{
*current = false;
if (line.size() < 5)
return false;
*current = line.at(0) == '.';
if (*current)
line[0] = ' ';
const QList<QByteArray> tokens = simplify(line).split(' ');
if (tokens.size() < 8 || tokens.at(1) != "Id:")
return false;
switch (tokens.size()) { // fallthru intended
case 9:
thread->name = QString::fromLocal8Bit(tokens.at(8));
case 8:
thread->state = QString::fromLocal8Bit(tokens.at(7));
case 3: {
const QByteArray &pidTid = tokens.at(2);
const int dotPos = pidTid.indexOf('.');
if (dotPos != -1)
thread->targetId = QLatin1String("0x") + QString::fromLatin1(pidTid.mid(dotPos + 1));
}
case 1:
thread->id = ThreadId(tokens.at(0).toInt());
break;
} // switch size
return true;
}
// Helper to retrieve an int child from GDBMI
static inline bool gdbmiChildToInt(const GdbMi &parent, const char *childName, int *target)
{
......
......@@ -71,9 +71,6 @@ static const char debuggingToolsWikiLinkC[] = "http://qt-project.org/wiki/Qt_Cre
static const char DEBUGGER_DATA_KEY[] = "DebuggerItem.";
static const char DEBUGGER_COUNT_KEY[] = "DebuggerItem.Count";
static const char DEBUGGER_FILE_VERSION_KEY[] = "Version";
static const char DEFAULT_DEBUGGER_COUNT_KEY[] = "DefaultDebugger.Count";
static const char DEFAULT_DEBUGGER_ABI_KEY[] = "DefaultDebugger.Abi.";
static const char DEFAULT_DEBUGGER_PATH_KEY[] = "DefaultDebugger.Path.";
static const char DEBUGGER_FILENAME[] = "/qtcreator/debuggers.xml";
static const char DEBUGGER_LEGACY_FILENAME[] = "/qtcreator/profiles.xml";
......
......@@ -83,8 +83,6 @@ namespace Internal {
\sa Debugger::MemoryView, Debugger::RegisterMemoryView
*/
namespace { const int DataRange = 1024 * 1024; }
MemoryAgent::MemoryAgent(DebuggerEngine *engine)
: QObject(engine), m_engine(engine)
{
......
......@@ -47,8 +47,6 @@ enum { debug = 0 };
#define EDEBUG(s) do { if (debug) qDebug() << s; } while (0)
const int ConnectionWaitTimeMs = 5000;
DebuggerEngine *createQmlCppEngine(const DebuggerStartParameters &sp,
QString *errorMessage)
{
......
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