forked from qt-creator/qt-creator
Debugger: Remove unused debuggerstreamops.* files
Change-Id: I11a793f84ae666790715505dc839cd8f678a0728 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -36,7 +36,6 @@ HEADERS += \
|
||||
debuggerrunconfigurationaspect.h \
|
||||
debuggerrunner.h \
|
||||
debuggerstartparameters.h \
|
||||
debuggerstreamops.h \
|
||||
debuggerstringutils.h \
|
||||
debuggerkitconfigwidget.h \
|
||||
debuggerkitinformation.h \
|
||||
@@ -94,7 +93,6 @@ SOURCES += \
|
||||
debuggerprotocol.cpp \
|
||||
debuggerrunconfigurationaspect.cpp \
|
||||
debuggerrunner.cpp \
|
||||
debuggerstreamops.cpp \
|
||||
debuggeroptionspage.cpp \
|
||||
debuggerkitconfigwidget.cpp \
|
||||
debuggerkitinformation.cpp \
|
||||
|
||||
@@ -56,7 +56,6 @@ QtcPlugin {
|
||||
"debuggerrunner.cpp", "debuggerrunner.h",
|
||||
"debuggersourcepathmappingwidget.cpp", "debuggersourcepathmappingwidget.h",
|
||||
"debuggerstartparameters.h",
|
||||
"debuggerstreamops.cpp", "debuggerstreamops.h",
|
||||
"debuggerstringutils.h",
|
||||
"debuggertooltipmanager.cpp", "debuggertooltipmanager.h",
|
||||
"disassembleragent.cpp", "disassembleragent.h",
|
||||
|
||||
@@ -1,309 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of Qt Creator.
|
||||
**
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and Digia. For licensing terms and
|
||||
** conditions see http://qt.digia.com/licensing. For further information
|
||||
** use the contact form at http://qt.digia.com/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Digia gives you certain additional
|
||||
** rights. These rights are described in the Digia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "debuggerstreamops.h"
|
||||
|
||||
#include "breakpoint.h"
|
||||
#include "watchdata.h"
|
||||
#include "disassemblerlines.h"
|
||||
|
||||
#include <QDataStream>
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
|
||||
QDataStream &operator<<(QDataStream &stream, const ThreadData &d)
|
||||
{
|
||||
stream << d.id.raw();
|
||||
stream << d.address;
|
||||
stream << d.function;
|
||||
stream << d.fileName;
|
||||
stream << d.state;
|
||||
stream << d.lineNumber;
|
||||
stream << d.name;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &stream, ThreadData &d)
|
||||
{
|
||||
qint64 id;
|
||||
stream >> id;
|
||||
d.id = ThreadId(id);
|
||||
stream >> d.address;
|
||||
stream >> d.function;
|
||||
stream >> d.fileName;
|
||||
stream >> d.state;
|
||||
stream >> d.lineNumber;
|
||||
stream >> d.name;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &stream, const Threads &threads)
|
||||
{
|
||||
stream << (quint64)threads.count();
|
||||
for (int i = 0; i < threads.count(); i++)
|
||||
{
|
||||
const ThreadData &d = threads.at(i);
|
||||
stream << d;
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &stream, Threads &threads)
|
||||
{
|
||||
quint64 count;
|
||||
stream >> count;
|
||||
threads.clear();
|
||||
for (quint64 i = 0; i < count; ++i)
|
||||
{
|
||||
ThreadData d;
|
||||
stream >> d;
|
||||
threads.append(d);
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &stream, const StackFrame &s)
|
||||
{
|
||||
stream << (quint64)s.level;
|
||||
stream << s.function;
|
||||
stream << s.file;
|
||||
stream << s.from;
|
||||
stream << s.to;
|
||||
stream << s.line;
|
||||
stream << s.address;
|
||||
stream << s.usable;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &stream, StackFrame &s)
|
||||
{
|
||||
quint64 level;
|
||||
stream >> level;
|
||||
s.level = level;
|
||||
stream >> s.function;
|
||||
stream >> s.file;
|
||||
stream >> s.from;
|
||||
stream >> s.to;
|
||||
stream >> s.line;
|
||||
stream >> s.address;
|
||||
stream >> s.usable;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &stream, const StackFrames &frames)
|
||||
{
|
||||
stream << (quint64)frames.count();
|
||||
for (int i = 0; i < frames.count(); i++)
|
||||
{
|
||||
const StackFrame &s = frames.at(i);
|
||||
stream << s;
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &stream, StackFrames &frames)
|
||||
{
|
||||
quint64 count;
|
||||
stream >> count;
|
||||
frames.clear();
|
||||
for (quint64 i = 0; i < count; ++i)
|
||||
{
|
||||
StackFrame s;
|
||||
stream >> s;
|
||||
frames.append(s);
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &stream, const BreakpointResponse &s)
|
||||
{
|
||||
stream << s.id.majorPart();
|
||||
stream << s.condition;
|
||||
stream << s.ignoreCount;
|
||||
stream << s.fileName;
|
||||
stream << s.lineNumber;
|
||||
//stream << s.bpCorrectedLineNumber;
|
||||
stream << s.threadSpec;
|
||||
stream << s.functionName;
|
||||
stream << s.address;
|
||||
stream << s.hitCount;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &stream, BreakpointResponse &s)
|
||||
{
|
||||
int majorPart;
|
||||
stream >> majorPart;
|
||||
s.id = BreakpointResponseId(majorPart);
|
||||
stream >> s.condition;
|
||||
stream >> s.ignoreCount;
|
||||
stream >> s.fileName;
|
||||
stream >> s.lineNumber;
|
||||
//stream >> s.bpCorrectedLineNumber;
|
||||
stream >> s.threadSpec;
|
||||
stream >> s.functionName;
|
||||
stream >> s.address;
|
||||
stream >> s.hitCount;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &stream, const BreakpointParameters &s)
|
||||
{
|
||||
stream << s.fileName;
|
||||
stream << s.condition;
|
||||
stream << quint64(s.ignoreCount);
|
||||
stream << quint64(s.lineNumber);
|
||||
stream << quint64(s.address);
|
||||
stream << s.functionName;
|
||||
stream << int(s.pathUsage);
|
||||
stream << s.tracepoint;
|
||||
stream << s.module;
|
||||
stream << s.command;
|
||||
stream << s.message;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &stream, BreakpointParameters &s)
|
||||
{
|
||||
quint64 t;
|
||||
QString str;
|
||||
QByteArray ba;
|
||||
bool b;
|
||||
stream >> str; s.fileName = str;
|
||||
stream >> ba; s.condition = ba;
|
||||
stream >> t; s.ignoreCount = t;
|
||||
stream >> t; s.lineNumber = t;
|
||||
stream >> t; s.address = t;
|
||||
stream >> str; s.functionName = str;
|
||||
stream >> t; s.pathUsage = static_cast<BreakpointPathUsage>(t);
|
||||
stream >> b; s.tracepoint = b;
|
||||
stream >> str ; s.module = str;
|
||||
stream >> str ; s.command = str;
|
||||
stream >> str ; s.message = str;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream &stream, const WatchData &wd)
|
||||
{
|
||||
stream << wd.id;
|
||||
stream << wd.iname;
|
||||
stream << wd.exp;
|
||||
stream << wd.name;
|
||||
stream << wd.value;
|
||||
stream << wd.editvalue;
|
||||
stream << wd.editformat;
|
||||
stream << wd.typeFormats;
|
||||
stream << wd.type;
|
||||
stream << wd.displayedType;
|
||||
stream << wd.variable;
|
||||
stream << wd.address;
|
||||
stream << wd.size;
|
||||
stream << wd.hasChildren;
|
||||
stream << wd.valueEnabled;
|
||||
stream << wd.valueEditable;
|
||||
stream << wd.error;
|
||||
stream << wd.state;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream &stream, WatchData &wd)
|
||||
{
|
||||
stream >> wd.id;
|
||||
stream >> wd.iname;
|
||||
stream >> wd.exp;
|
||||
stream >> wd.name;
|
||||
stream >> wd.value;
|
||||
stream >> wd.editvalue;
|
||||
stream >> wd.editformat;
|
||||
stream >> wd.typeFormats;
|
||||
stream >> wd.type;
|
||||
stream >> wd.displayedType;
|
||||
stream >> wd.variable;
|
||||
stream >> wd.address;
|
||||
stream >> wd.size;
|
||||
stream >> wd.hasChildren;
|
||||
stream >> wd.valueEnabled;
|
||||
stream >> wd.valueEditable;
|
||||
stream >> wd.error;
|
||||
stream >> wd.state;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream& stream, const DisassemblerLine &o)
|
||||
{
|
||||
stream << o.address;
|
||||
stream << o.function;
|
||||
stream << o.offset;
|
||||
stream << o.lineNumber;
|
||||
stream << o.data;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream& stream, DisassemblerLine &o)
|
||||
{
|
||||
stream >> o.address;
|
||||
stream >> o.function;
|
||||
stream >> o.offset;
|
||||
stream >> o.lineNumber;
|
||||
stream >> o.data;
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator<<(QDataStream& stream, const DisassemblerLines &o)
|
||||
{
|
||||
stream << quint64(o.size());
|
||||
for (int i = 0; i < o.size(); ++i)
|
||||
{
|
||||
stream << o.at(i);
|
||||
}
|
||||
return stream;
|
||||
}
|
||||
|
||||
QDataStream &operator>>(QDataStream& stream, DisassemblerLines &o)
|
||||
{
|
||||
DisassemblerLines r;
|
||||
quint64 count;
|
||||
stream >> count;
|
||||
for (quint64 i = 0; i < count; ++i)
|
||||
{
|
||||
DisassemblerLine line;
|
||||
stream >> line;
|
||||
r.appendLine(line);
|
||||
}
|
||||
o = r;
|
||||
return stream;
|
||||
}
|
||||
|
||||
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Debugger
|
||||
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of Qt Creator.
|
||||
**
|
||||
** Commercial License Usage
|
||||
** Licensees holding valid commercial Qt licenses may use this file in
|
||||
** accordance with the commercial license agreement provided with the
|
||||
** Software or, alternatively, in accordance with the terms contained in
|
||||
** a written agreement between you and Digia. For licensing terms and
|
||||
** conditions see http://qt.digia.com/licensing. For further information
|
||||
** use the contact form at http://qt.digia.com/contact-us.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Digia gives you certain additional
|
||||
** rights. These rights are described in the Digia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef DEBUGGERSTREAMOPS_H
|
||||
#define DEBUGGERSTREAMOPS_H
|
||||
|
||||
#include "threaddata.h"
|
||||
#include "stackframe.h"
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QDataStream)
|
||||
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
|
||||
class BreakpointParameters;
|
||||
class BreakpointResponse;
|
||||
class WatchData;
|
||||
class DisassemblerLine;
|
||||
class DisassemblerLines;
|
||||
|
||||
QDataStream &operator<<(QDataStream& stream, const ThreadData &thread);
|
||||
QDataStream &operator>>(QDataStream& stream, ThreadData &threads);
|
||||
QDataStream &operator<<(QDataStream& stream, const Threads &threads);
|
||||
QDataStream &operator>>(QDataStream& stream, Threads &threads);
|
||||
QDataStream &operator<<(QDataStream& stream, const StackFrame& frame);
|
||||
QDataStream &operator>>(QDataStream& stream, StackFrame &frame);
|
||||
QDataStream &operator<<(QDataStream& stream, const StackFrames& frames);
|
||||
QDataStream &operator>>(QDataStream& stream, StackFrames &frames);
|
||||
QDataStream &operator<<(QDataStream& stream, const BreakpointParameters &data);
|
||||
QDataStream &operator>>(QDataStream& stream, BreakpointParameters &data);
|
||||
QDataStream &operator<<(QDataStream& stream, const BreakpointResponse &data);
|
||||
QDataStream &operator>>(QDataStream& stream, BreakpointResponse &data);
|
||||
QDataStream &operator<<(QDataStream& stream, const WatchData &data);
|
||||
QDataStream &operator>>(QDataStream& stream, WatchData &data);
|
||||
QDataStream &operator<<(QDataStream& stream, const DisassemblerLine &o);
|
||||
QDataStream &operator>>(QDataStream& stream, DisassemblerLine &o);
|
||||
QDataStream &operator<<(QDataStream& stream, const DisassemblerLines &o);
|
||||
QDataStream &operator>>(QDataStream& stream, DisassemblerLines &o);
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Debugger
|
||||
|
||||
#endif // DEBUGGERSTREAMOPS_H
|
||||
Reference in New Issue
Block a user