Files
qt-creator/src/plugins/debugger/threaddata.h

61 lines
1.2 KiB
C
Raw Normal View History

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
2010-10-15 10:56:39 +02:00
#pragma once
2010-10-15 10:56:39 +02:00
#include <QString>
#include <QVector>
2010-10-15 10:56:39 +02:00
namespace Debugger {
namespace Internal {
////////////////////////////////////////////////////////////////////////
//
// ThreadData
//
////////////////////////////////////////////////////////////////////////
/*! A structure containing information about a single thread. */
2010-10-15 10:56:39 +02:00
struct ThreadData
{
ThreadData() = default;
2010-10-15 10:56:39 +02:00
enum {
IdColumn,
AddressColumn,
FunctionColumn,
FileColumn,
LineColumn,
StateColumn,
NameColumn,
TargetIdColumn,
DetailsColumn,
2010-10-15 10:56:39 +02:00
CoreColumn,
ComboNameColumn,
ColumnCount = CoreColumn,
2010-10-15 10:56:39 +02:00
};
// Permanent data.
QString id;
QString groupId;
QString targetId;
QString core;
bool stopped = true;
// State information when stopped.
qint32 frameLevel = -1;
qint32 lineNumber = -1;
quint64 address = 0;
2010-10-15 10:56:39 +02:00
QString function;
QString module;
2010-10-15 10:56:39 +02:00
QString fileName;
QString details;
2010-10-15 10:56:39 +02:00
QString state;
QString name;
};
using Threads = QVector<ThreadData>;
2010-10-15 10:56:39 +02:00
} // namespace Internal
} // namespace Debugger