2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2013-01-24 10:38:40 +01:00
|
|
|
|
2015-02-17 17:44:54 +01:00
|
|
|
#include <QByteArray>
|
2015-07-10 11:06:27 +02:00
|
|
|
#include <QList>
|
2015-02-17 17:44:54 +01:00
|
|
|
#include <QString>
|
2015-09-14 13:40:35 +02:00
|
|
|
#include <QJsonValue>
|
|
|
|
|
#include <QJsonObject>
|
2015-10-15 17:57:39 +02:00
|
|
|
#include <QVector>
|
2015-02-06 10:30:25 +01:00
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
#include <utils/filepath.h>
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2017-03-01 09:35:28 +01:00
|
|
|
namespace Utils { class ProcessHandle; }
|
|
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
namespace Debugger::Internal {
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2015-02-06 10:30:25 +01:00
|
|
|
class DebuggerResponse;
|
|
|
|
|
|
2015-02-02 12:47:51 +01:00
|
|
|
// Convenience structure to build up backend commands.
|
|
|
|
|
class DebuggerCommand
|
|
|
|
|
{
|
|
|
|
|
public:
|
2018-07-23 22:28:49 +02:00
|
|
|
using Callback = std::function<void (const DebuggerResponse &)>;
|
2015-02-11 16:38:33 +01:00
|
|
|
|
2018-07-23 22:28:49 +02:00
|
|
|
DebuggerCommand() = default;
|
2016-11-29 12:35:57 +01:00
|
|
|
DebuggerCommand(const QString &f) : function(f) {}
|
|
|
|
|
DebuggerCommand(const QString &f, const QJsonValue &a) : function(f), args(a) {}
|
2016-06-07 17:04:53 +02:00
|
|
|
DebuggerCommand(const QString &f, int fl) : function(f), flags(fl) {}
|
|
|
|
|
DebuggerCommand(const QString &f, int fl, const Callback &cb) : function(f), callback(cb), flags(fl) {}
|
2016-12-13 13:37:05 +01:00
|
|
|
DebuggerCommand(const QString &f, const Callback &cb) : function(f), callback(cb) {}
|
2015-02-02 12:47:51 +01:00
|
|
|
|
2015-09-14 13:40:35 +02:00
|
|
|
void arg(const char *value);
|
2015-11-24 11:10:00 +01:00
|
|
|
void arg(const char *name, bool value);
|
2015-02-05 14:39:59 +01:00
|
|
|
void arg(const char *name, int value);
|
|
|
|
|
void arg(const char *name, qlonglong value);
|
|
|
|
|
void arg(const char *name, qulonglong value);
|
|
|
|
|
void arg(const char *name, const QString &value);
|
|
|
|
|
void arg(const char *name, const char *value);
|
2015-07-10 11:06:27 +02:00
|
|
|
void arg(const char *name, const QList<int> &list);
|
2016-12-07 13:31:10 +01:00
|
|
|
void arg(const char *name, const QStringList &list); // Note: Hex-encodes.
|
2015-09-14 13:40:35 +02:00
|
|
|
void arg(const char *name, const QJsonValue &value);
|
2015-07-10 11:06:27 +02:00
|
|
|
|
2016-06-07 17:04:53 +02:00
|
|
|
QString argsToPython() const;
|
|
|
|
|
QString argsToString() const;
|
2015-02-02 12:47:51 +01:00
|
|
|
|
2016-12-13 13:37:05 +01:00
|
|
|
enum CommandFlag {
|
|
|
|
|
NoFlags = 0,
|
|
|
|
|
// The command needs a stopped inferior.
|
|
|
|
|
NeedsTemporaryStop = 1,
|
|
|
|
|
// No need to wait for the reply before continuing inferior.
|
|
|
|
|
Discardable = 2,
|
|
|
|
|
// Needs a dummy extra command to force GDB output flushing.
|
|
|
|
|
NeedsFlush = 4,
|
|
|
|
|
// The command needs a stopped inferior and will stay stopped afterward.
|
|
|
|
|
NeedsFullStop = 8,
|
|
|
|
|
// Callback expects ResultRunning instead of ResultDone.
|
|
|
|
|
RunRequest = 16,
|
|
|
|
|
// Callback expects ResultExit instead of ResultDone.
|
|
|
|
|
ExitRequest = 32,
|
|
|
|
|
// Auto-set inferior shutdown related states.
|
|
|
|
|
LosesChild = 64,
|
2017-01-20 10:05:31 +01:00
|
|
|
// This is a native (non-Python) command that's handled directly by the backend.
|
|
|
|
|
NativeCommand = 256,
|
2016-12-13 13:37:05 +01:00
|
|
|
// This is a command that needs to be wrapped into -interpreter-exec console
|
|
|
|
|
ConsoleCommand = 512,
|
|
|
|
|
// This is the UpdateLocals commannd during which we ignore notifications
|
|
|
|
|
InUpdateLocals = 1024,
|
|
|
|
|
// Do not echo to log.
|
|
|
|
|
Silent = 4096
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
Q_DECLARE_FLAGS(CommandFlags, CommandFlag)
|
|
|
|
|
|
2016-06-07 17:04:53 +02:00
|
|
|
QString function;
|
2015-09-14 13:40:35 +02:00
|
|
|
QJsonValue args;
|
2015-02-06 10:30:25 +01:00
|
|
|
Callback callback;
|
2016-11-29 12:35:57 +01:00
|
|
|
uint postTime = 0; // msecsSinceStartOfDay
|
|
|
|
|
int flags = 0;
|
2015-09-11 11:28:55 +02:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void argHelper(const char *name, const QByteArray &value);
|
2015-02-02 12:47:51 +01:00
|
|
|
};
|
|
|
|
|
|
2016-12-13 09:46:51 +01:00
|
|
|
class DebuggerCommandSequence
|
|
|
|
|
{
|
|
|
|
|
public:
|
2018-07-23 22:28:49 +02:00
|
|
|
DebuggerCommandSequence() = default;
|
2016-12-13 09:46:51 +01:00
|
|
|
bool isEmpty() const { return m_commands.isEmpty(); }
|
|
|
|
|
bool wantContinue() const { return m_continue; }
|
|
|
|
|
const QList<DebuggerCommand> &commands() const { return m_commands; }
|
|
|
|
|
void append(const DebuggerCommand &cmd, bool wantContinue) {
|
|
|
|
|
m_commands.append(cmd);
|
|
|
|
|
m_continue = wantContinue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
QList<DebuggerCommand> m_commands;
|
|
|
|
|
bool m_continue = false;
|
|
|
|
|
};
|
|
|
|
|
|
2020-08-11 13:20:32 +02:00
|
|
|
class DebuggerOutputParser
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit DebuggerOutputParser(const QString &output);
|
|
|
|
|
|
|
|
|
|
QChar current() const { return *from; }
|
|
|
|
|
bool isCurrent(QChar c) const { return *from == c; }
|
2021-05-18 07:24:41 +02:00
|
|
|
bool isAtEnd() const { return from >= to; }
|
2020-08-11 13:20:32 +02:00
|
|
|
|
|
|
|
|
void advance() { ++from; }
|
|
|
|
|
void advance(int n) { from += n; }
|
|
|
|
|
QChar lookAhead(int offset) const { return from[offset]; }
|
|
|
|
|
|
|
|
|
|
int readInt();
|
|
|
|
|
QChar readChar();
|
|
|
|
|
QString readCString();
|
2023-02-24 07:53:51 +01:00
|
|
|
QStringView readString(const std::function<bool(char)> &isValidChar);
|
2020-08-11 13:20:32 +02:00
|
|
|
|
2023-02-23 17:43:38 +01:00
|
|
|
QStringView buffer() const { return QStringView(from, to - from); }
|
2020-08-11 13:20:32 +02:00
|
|
|
int remainingChars() const { return int(to - from); }
|
|
|
|
|
|
|
|
|
|
void skipCommas();
|
|
|
|
|
void skipSpaces();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
const QChar *from = nullptr;
|
|
|
|
|
const QChar *to = nullptr;
|
|
|
|
|
};
|
|
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
class GdbMi
|
|
|
|
|
{
|
|
|
|
|
public:
|
2018-07-23 22:28:49 +02:00
|
|
|
GdbMi() = default;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2016-06-07 17:04:53 +02:00
|
|
|
QString m_name;
|
|
|
|
|
QString m_data;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2018-09-25 18:48:29 +02:00
|
|
|
using Children = QVector<GdbMi>;
|
2015-02-26 08:39:40 +01:00
|
|
|
enum Type { Invalid, Const, Tuple, List };
|
2018-07-23 22:28:49 +02:00
|
|
|
Type m_type = Invalid;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2018-09-25 18:48:29 +02:00
|
|
|
void addChild(const GdbMi &child) { m_children.push_back(child); }
|
|
|
|
|
|
2015-02-26 08:39:40 +01:00
|
|
|
Type type() const { return m_type; }
|
2016-06-07 17:04:53 +02:00
|
|
|
const QString &name() const { return m_name; }
|
|
|
|
|
bool hasName(const QString &name) const { return m_name == name; }
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2015-02-26 08:39:40 +01:00
|
|
|
bool isValid() const { return m_type != Invalid; }
|
|
|
|
|
bool isList() const { return m_type == List; }
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2016-06-07 17:04:53 +02:00
|
|
|
const QString &data() const { return m_data; }
|
2018-09-25 18:48:29 +02:00
|
|
|
Children::const_iterator begin() const { return m_children.begin(); }
|
|
|
|
|
Children::const_iterator end() const { return m_children.end(); }
|
2015-02-26 08:39:40 +01:00
|
|
|
int childCount() const { return int(m_children.size()); }
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2010-01-29 21:33:57 +01:00
|
|
|
const GdbMi &childAt(int index) const { return m_children[index]; }
|
2015-02-26 08:39:40 +01:00
|
|
|
const GdbMi &operator[](const char *name) const;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2016-06-07 17:04:53 +02:00
|
|
|
QString toString(bool multiline = false, int indent = 0) const;
|
2011-05-10 18:58:06 +02:00
|
|
|
qulonglong toAddress() const;
|
2017-03-01 09:35:28 +01:00
|
|
|
Utils::ProcessHandle toProcessHandle() const;
|
2013-05-07 12:09:54 +02:00
|
|
|
int toInt() const { return m_data.toInt(); }
|
2017-01-17 13:27:14 +01:00
|
|
|
qint64 toLongLong() const { return m_data.toLongLong(); }
|
2016-06-07 17:04:53 +02:00
|
|
|
void fromString(const QString &str);
|
|
|
|
|
void fromStringMultiple(const QString &str);
|
|
|
|
|
|
|
|
|
|
static QString escapeCString(const QString &ba);
|
2020-08-11 13:20:32 +02:00
|
|
|
void parseResultOrValue(DebuggerOutputParser &state);
|
|
|
|
|
void parseValue(DebuggerOutputParser &state);
|
|
|
|
|
void parseTuple(DebuggerOutputParser &state);
|
|
|
|
|
void parseTuple_helper(DebuggerOutputParser &state);
|
|
|
|
|
void parseList(DebuggerOutputParser &state);
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2015-02-26 08:39:40 +01:00
|
|
|
private:
|
2016-06-07 17:04:53 +02:00
|
|
|
void dumpChildren(QString *str, bool multiline, int indent) const;
|
2018-09-25 18:48:29 +02:00
|
|
|
Children m_children;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2016-06-07 17:04:53 +02:00
|
|
|
QString fromHex(const QString &str);
|
|
|
|
|
QString toHex(const QString &str);
|
|
|
|
|
|
|
|
|
|
|
2015-02-05 15:47:07 +01:00
|
|
|
enum ResultClass
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
2010-01-29 21:33:57 +01:00
|
|
|
// "done" | "running" | "connected" | "error" | "exit"
|
2015-02-05 15:47:07 +01:00
|
|
|
ResultUnknown,
|
|
|
|
|
ResultDone,
|
|
|
|
|
ResultRunning,
|
|
|
|
|
ResultConnected,
|
|
|
|
|
ResultError,
|
|
|
|
|
ResultExit
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2015-02-05 15:47:07 +01:00
|
|
|
class DebuggerResponse
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2018-07-23 22:28:49 +02:00
|
|
|
DebuggerResponse() = default;
|
2016-06-07 17:04:53 +02:00
|
|
|
QString toString() const;
|
|
|
|
|
static QString stringFromResultClass(ResultClass resultClass);
|
|
|
|
|
|
2018-07-23 22:28:49 +02:00
|
|
|
int token = -1;
|
|
|
|
|
ResultClass resultClass = ResultUnknown;
|
2016-06-07 17:04:53 +02:00
|
|
|
GdbMi data;
|
|
|
|
|
QString logStreamOutput;
|
|
|
|
|
QString consoleStreamOutput;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2010-05-27 15:41:52 +02:00
|
|
|
void extractGdbVersion(const QString &msg,
|
2012-02-10 07:42:44 +01:00
|
|
|
int *gdbVersion, int *gdbBuildVersion, bool *isMacGdb, bool *isQnxGdb);
|
2010-05-27 15:41:52 +02:00
|
|
|
|
2015-08-12 11:26:10 +02:00
|
|
|
|
2015-12-11 13:28:21 +01:00
|
|
|
class DebuggerEncoding
|
2013-01-24 11:19:15 +01:00
|
|
|
{
|
2015-12-11 13:28:21 +01:00
|
|
|
public:
|
|
|
|
|
enum EncodingType {
|
|
|
|
|
Unencoded,
|
|
|
|
|
HexEncodedLocal8Bit,
|
|
|
|
|
HexEncodedLatin1,
|
|
|
|
|
HexEncodedUtf8,
|
|
|
|
|
HexEncodedUtf16,
|
|
|
|
|
HexEncodedUcs4,
|
|
|
|
|
HexEncodedSignedInteger,
|
|
|
|
|
HexEncodedUnsignedInteger,
|
|
|
|
|
HexEncodedFloat,
|
|
|
|
|
JulianDate,
|
|
|
|
|
MillisecondsSinceMidnight,
|
|
|
|
|
JulianDateAndMillisecondsSinceMidnight,
|
|
|
|
|
IPv6AddressAndHexScopeId,
|
|
|
|
|
DateTimeInternal,
|
|
|
|
|
};
|
|
|
|
|
|
2018-07-23 22:28:49 +02:00
|
|
|
DebuggerEncoding() = default;
|
2016-06-07 17:04:53 +02:00
|
|
|
explicit DebuggerEncoding(const QString &data);
|
2015-12-11 13:28:21 +01:00
|
|
|
QString toString() const;
|
|
|
|
|
|
|
|
|
|
EncodingType type = Unencoded;
|
|
|
|
|
int size = 0;
|
|
|
|
|
bool quotes = false;
|
2013-01-24 11:19:15 +01:00
|
|
|
};
|
|
|
|
|
|
2015-08-12 11:26:10 +02:00
|
|
|
// Decode string data as returned by the dumper helpers.
|
2016-06-07 17:04:53 +02:00
|
|
|
QString decodeData(const QString &baIn, const QString &encoding);
|
2015-08-12 11:26:10 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
// These enum values correspond to possible value display format requests,
|
|
|
|
|
// typically selected by the user using the L&E context menu, under
|
|
|
|
|
// "Change Value Display Format". They are passed from the frontend to
|
|
|
|
|
// the dumpers.
|
|
|
|
|
//
|
2021-12-10 11:03:32 +01:00
|
|
|
// Keep in sync with share/qtcreator/debugger/utils.py
|
2015-08-12 11:26:10 +02:00
|
|
|
//
|
2021-12-10 11:03:32 +01:00
|
|
|
// \note Add new enum values only with increasing numeric values as they are
|
2015-08-12 11:26:10 +02:00
|
|
|
// persisted in user settings.
|
|
|
|
|
|
|
|
|
|
enum DisplayFormat
|
|
|
|
|
{
|
|
|
|
|
AutomaticFormat = 0, // Based on type for individuals, dumper default for types.
|
|
|
|
|
// Could be anything reasonably cheap.
|
|
|
|
|
RawFormat = 1, // No formatting at all.
|
|
|
|
|
|
|
|
|
|
SimpleFormat = 2, // Typical simple format (e.g. for QModelIndex row/column)
|
|
|
|
|
EnhancedFormat = 3, // Enhanced format (e.g. for QModelIndex with resolved display)
|
|
|
|
|
SeparateFormat = 4, // Display in separate Window
|
|
|
|
|
|
|
|
|
|
Latin1StringFormat = 5,
|
|
|
|
|
SeparateLatin1StringFormat = 6,
|
|
|
|
|
Utf8StringFormat = 7,
|
|
|
|
|
SeparateUtf8StringFormat = 8,
|
|
|
|
|
Local8BitStringFormat = 9,
|
|
|
|
|
Utf16StringFormat = 10,
|
|
|
|
|
Ucs4StringFormat = 11,
|
|
|
|
|
|
|
|
|
|
Array10Format = 12,
|
|
|
|
|
Array100Format = 13,
|
|
|
|
|
Array1000Format = 14,
|
|
|
|
|
Array10000Format = 15,
|
|
|
|
|
ArrayPlotFormat = 16,
|
|
|
|
|
|
|
|
|
|
CompactMapFormat = 17,
|
|
|
|
|
DirectQListStorageFormat = 18,
|
|
|
|
|
IndirectQListStorageFormat = 19,
|
|
|
|
|
|
|
|
|
|
BoolTextFormat = 20, // Bools as "true" or "false" - Frontend internal only.
|
|
|
|
|
BoolIntegerFormat = 21, // Bools as "0" or "1" - Frontend internal only
|
|
|
|
|
|
|
|
|
|
DecimalIntegerFormat = 22, // Frontend internal only
|
|
|
|
|
HexadecimalIntegerFormat = 23, // Frontend internal only
|
|
|
|
|
BinaryIntegerFormat = 24, // Frontend internal only
|
|
|
|
|
OctalIntegerFormat = 25, // Frontend internal only
|
2021-12-10 11:03:32 +01:00
|
|
|
CharCodeIntegerFormat = 28, // Frontend internal only
|
2015-08-12 11:26:10 +02:00
|
|
|
|
|
|
|
|
CompactFloatFormat = 26, // Frontend internal only
|
2022-01-06 18:10:04 +01:00
|
|
|
ScientificFloatFormat = 27, // Frontend internal only
|
|
|
|
|
HexFloatFormat = 29, // Frontend internal only
|
|
|
|
|
NormalizedTwoFloatFormat = 30, // Frontend internal only
|
2015-08-12 11:26:10 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2016-04-08 00:49:22 +02:00
|
|
|
// These values are passed from the dumper to the frontend,
|
2015-08-12 11:26:10 +02:00
|
|
|
// typically as a result of passing a related DisplayFormat value.
|
|
|
|
|
// They are never stored in settings.
|
|
|
|
|
|
2016-04-08 00:49:22 +02:00
|
|
|
const char DisplayLatin1String[] = "latin1:separate";
|
|
|
|
|
const char DisplayUtf8String[] = "utf8:separate";
|
|
|
|
|
const char DisplayUtf16String[] = "utf16:separate";
|
|
|
|
|
const char DisplayUcs4String[] = "ucs4:separate";
|
|
|
|
|
const char DisplayImageData[] = "imagedata:separate";
|
|
|
|
|
const char DisplayImageFile[] = "imagefile:separate";
|
|
|
|
|
const char DisplayPlotData[] = "plotdata:separate";
|
2016-09-21 18:52:49 +02:00
|
|
|
const char DisplayArrayData[] = "arraydata:separate";
|
2013-01-24 11:19:15 +01:00
|
|
|
|
Debugger: Make most views per-engine instead of singletons
This is a step towards properly supporting multiple debugger
sessions side-by-side.
The combined C++-and-QML engine has been removed, instead a
combined setup creates now two individual engines, under a single
DebuggerRunTool but mostly independent with no combined state
machine. This requires a few more clicks in some cases, but
makes it easier to direct e.g. interrupt requests to the
interesting engine.
Care has been taken to not change the UX of the single debugger
session use case if possible. The fat debug button operates
as-before in that case, i.e. switches to Interrupt if the
single active runconfiguration runs in the debugger etc.
Most views are made per-engine, running an engine creates
a new Perspective, which is destroyed when the run control dies.
The snapshot view remains global and becomes primary source
of information on a "current engine" that receives all menu
and otherwise global input.
There is a new global "Breakpoint Preset" view containing
all "static" breakpoint data. When an engine starts up it
"claims" breakpoint it believes it can handle, but operates
on a copy of the static data. The markers of the static
version are suppressed as long as an engine controls a
breakpoint (that inclusive all resolved locations), but are
re-instatet once the engine quits.
The old Breakpoint class that already contained this split
per-instance was split into a new Breakpoint and a
GlobalBreakpoint class, with a per-engine model for Breakpoints,
and a singleton model containing GlobalBreakpoints.
There is a new CppDebuggerEngine intermediate level serving as
base for C++ (or, rather, "compiled") binary debugging, i.e.
{Gdb,Lldb,Cdb}Engine, taking over bits of the current DebuggerEngine
base that are not applicable to non-binary debuggers.
Change-Id: I9994f4c188379b4aee0c4f379edd4759fbb0bd43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-07-31 12:30:48 +02:00
|
|
|
enum LocationType { UnknownLocation, LocationByFile, LocationByAddress };
|
|
|
|
|
|
|
|
|
|
class ContextData
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
bool isValid() const { return type != UnknownLocation; }
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
LocationType type = UnknownLocation;
|
2020-01-02 11:31:14 +01:00
|
|
|
Utils::FilePath fileName;
|
Debugger: Make most views per-engine instead of singletons
This is a step towards properly supporting multiple debugger
sessions side-by-side.
The combined C++-and-QML engine has been removed, instead a
combined setup creates now two individual engines, under a single
DebuggerRunTool but mostly independent with no combined state
machine. This requires a few more clicks in some cases, but
makes it easier to direct e.g. interrupt requests to the
interesting engine.
Care has been taken to not change the UX of the single debugger
session use case if possible. The fat debug button operates
as-before in that case, i.e. switches to Interrupt if the
single active runconfiguration runs in the debugger etc.
Most views are made per-engine, running an engine creates
a new Perspective, which is destroyed when the run control dies.
The snapshot view remains global and becomes primary source
of information on a "current engine" that receives all menu
and otherwise global input.
There is a new global "Breakpoint Preset" view containing
all "static" breakpoint data. When an engine starts up it
"claims" breakpoint it believes it can handle, but operates
on a copy of the static data. The markers of the static
version are suppressed as long as an engine controls a
breakpoint (that inclusive all resolved locations), but are
re-instatet once the engine quits.
The old Breakpoint class that already contained this split
per-instance was split into a new Breakpoint and a
GlobalBreakpoint class, with a per-engine model for Breakpoints,
and a singleton model containing GlobalBreakpoints.
There is a new CppDebuggerEngine intermediate level serving as
base for C++ (or, rather, "compiled") binary debugging, i.e.
{Gdb,Lldb,Cdb}Engine, taking over bits of the current DebuggerEngine
base that are not applicable to non-binary debuggers.
Change-Id: I9994f4c188379b4aee0c4f379edd4759fbb0bd43
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: hjk <hjk@qt.io>
2018-07-31 12:30:48 +02:00
|
|
|
int lineNumber = 0;
|
|
|
|
|
quint64 address = 0;
|
|
|
|
|
};
|
|
|
|
|
|
2022-07-05 15:37:08 +02:00
|
|
|
} // Debugger::Internal
|
2016-12-13 13:37:05 +01:00
|
|
|
|
|
|
|
|
Q_DECLARE_OPERATORS_FOR_FLAGS(Debugger::Internal::DebuggerCommand::CommandFlags)
|