forked from qt-creator/qt-creator
Debugger: consolidate WatchData manipulation in watchdata.{h,cpp}
Change-Id: I241d37793dfde9cfe8e4895039819e91297e6cba Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -37,6 +37,8 @@
|
||||
namespace Debugger {
|
||||
namespace Internal {
|
||||
|
||||
class GdbMi;
|
||||
|
||||
class WatchData
|
||||
{
|
||||
public:
|
||||
@@ -99,7 +101,7 @@ public:
|
||||
void setValue(const QString &);
|
||||
void setValueToolTip(const QString &);
|
||||
void setType(const QByteArray &, bool guessChildrenFromType = true);
|
||||
void setAddress(const quint64 &);
|
||||
void updateAddress(const quint64 &);
|
||||
void setHexAddress(const QByteArray &a);
|
||||
|
||||
QString toString() const;
|
||||
@@ -113,6 +115,13 @@ public:
|
||||
QByteArray hexAddress() const;
|
||||
QByteArray hexReferencingAddress() const;
|
||||
|
||||
// Protocol interaction.
|
||||
void updateValue(const GdbMi &item);
|
||||
void updateChildCount(const GdbMi &mi);
|
||||
void updateAddress(const GdbMi &addressMi, const GdbMi &origAddressMi);
|
||||
void updateType(const GdbMi &item);
|
||||
void updateDisplayedType(const GdbMi &item);
|
||||
|
||||
public:
|
||||
quint64 id; // Token for the engine for internal mapping
|
||||
qint32 state; // 'needed' flags;
|
||||
@@ -146,6 +155,10 @@ public:
|
||||
qint32 source; // Originated from dumper or symbol evaluation? (CDB only)
|
||||
};
|
||||
|
||||
void parseWatchData(const QSet<QByteArray> &expandedINames,
|
||||
const WatchData &parent, const GdbMi &child,
|
||||
QList<WatchData> *insertions);
|
||||
|
||||
} // namespace Internal
|
||||
} // namespace Debugger
|
||||
|
||||
|
||||
Reference in New Issue
Block a user