diff options
author | hjk <hjk@theqtcompany.com> | 2015-10-08 16:19:57 +0200 |
---|---|---|
committer | Christian Stenger <christian.stenger@theqtcompany.com> | 2015-10-09 05:19:45 +0000 |
commit | 525c33f9991766342b41a0518b534836dc60ed69 (patch) | |
tree | 33f0bb24beeae02eb71e85c46e08943a033f0133 /src/plugins/debugger/stackframe.h | |
parent | ea39476ef2c0017f54021693ba545117ad53afa6 (diff) |
Debugger: Infrastructure for reworked native mixed debugging
- Remove old experimental native mixed approach.
- Move some common stack parsing to Stackhandler.
- Mark gdbbridge.py debug output explicitly to remove it
from actual reponse handling
New native mixed needs QtDeclarative changes and
QTC_DEBUGGER_NATIVE_MIXED=1 for now.
Change-Id: I09eed1da51cea878636d36756015b7bfaed34203
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Diffstat (limited to 'src/plugins/debugger/stackframe.h')
-rw-r--r-- | src/plugins/debugger/stackframe.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/plugins/debugger/stackframe.h b/src/plugins/debugger/stackframe.h index 8d29f3f004f..b9b23dfcede 100644 --- a/src/plugins/debugger/stackframe.h +++ b/src/plugins/debugger/stackframe.h @@ -44,6 +44,7 @@ namespace Debugger { namespace Internal { class DebuggerRunParameters; +class GdbMi; class StackFrame { @@ -53,24 +54,25 @@ public: bool isUsable() const; QString toToolTip() const; QString toString() const; - void fixQmlFrame(const DebuggerRunParameters &rp); + static StackFrame parseFrame(const GdbMi &data, const DebuggerRunParameters &rp); + static QList<StackFrame> parseFrames(const GdbMi &data, const DebuggerRunParameters &rp); + void fixQrcFrame(const DebuggerRunParameters &rp); public: DebuggerLanguage language; - qint32 level; + QByteArray level; QString function; - QString file; // We try to put an absolute file name in there. - QString from; // Sometimes something like "/usr/lib/libstdc++.so.6" - QString to; // Used in ScriptEngine only. + QString file; // We try to put an absolute file name in there. + QString module; // Sometimes something like "/usr/lib/libstdc++.so.6" + QString receiver; // Used in ScriptEngine only. qint32 line; quint64 address; bool usable; + QByteArray context; // Opaque value produced and consumed by the native backends. Q_DECLARE_TR_FUNCTIONS(Debugger::Internal::StackHandler) }; -QDebug operator<<(QDebug d, const StackFrame &frame); - typedef QList<StackFrame> StackFrames; } // namespace Internal |