forked from qt-creator/qt-creator
clean up ThreadData
Reviewed-by: hjk
This commit is contained in:
@@ -35,55 +35,13 @@
|
||||
|
||||
#include <QtGui/QIcon>
|
||||
|
||||
#include "threaddata.h"
|
||||
|
||||
namespace Debugger {
|
||||
class DebuggerEngine;
|
||||
|
||||
namespace Internal {
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ThreadData
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
|
||||
/*! A structure containing information about a single thread */
|
||||
struct ThreadData
|
||||
{
|
||||
ThreadData(int threadId = 0);
|
||||
|
||||
enum {
|
||||
IdColumn,
|
||||
AddressColumn,
|
||||
FunctionColumn,
|
||||
FileColumn,
|
||||
LineColumn,
|
||||
StateColumn,
|
||||
NameColumn,
|
||||
CoreColumn,
|
||||
ColumnCount = CoreColumn
|
||||
};
|
||||
|
||||
// Permanent data.
|
||||
int id;
|
||||
QString targetId;
|
||||
QString core;
|
||||
|
||||
// State information when stopped
|
||||
void notifyRunning(); // Clear state information
|
||||
|
||||
int frameLevel;
|
||||
quint64 address;
|
||||
QString function;
|
||||
QString fileName;
|
||||
QString state;
|
||||
int lineNumber;
|
||||
QString name;
|
||||
};
|
||||
|
||||
typedef QVector<ThreadData> Threads;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// ThreadsHandler
|
||||
@@ -102,7 +60,7 @@ public:
|
||||
void setCurrentThread(int index);
|
||||
int currentThreadId() const;
|
||||
void setCurrentThreadId(int id);
|
||||
int indexOf(int threadId) const;
|
||||
int indexOf(quint64 threadId) const;
|
||||
|
||||
void selectThread(int index);
|
||||
void setThreads(const Threads &threads);
|
||||
|
||||
Reference in New Issue
Block a user