forked from qt-creator/qt-creator
Debugger: Handle extra dumpers with LLDB
This generalizes part of the previously GDB-only code paths Change-Id: Id32798073e3c8bcb23bfedf463bebc866c8275e2 Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -1783,6 +1783,22 @@ QByteArray WatchHandler::individualFormatRequests() const
|
||||
return ba;
|
||||
}
|
||||
|
||||
void WatchHandler::addDumpers(const GdbMi &dumpers)
|
||||
{
|
||||
foreach (const GdbMi &dumper, dumpers.children()) {
|
||||
QStringList formats(tr("Raw structure"));
|
||||
foreach (const QByteArray &format, dumper["formats"].data().split(',')) {
|
||||
if (format == "Normal")
|
||||
formats.append(tr("Normal"));
|
||||
else if (format == "Displayed")
|
||||
formats.append(tr("Displayed"));
|
||||
else if (!format.isEmpty())
|
||||
formats.append(QString::fromLatin1(format));
|
||||
}
|
||||
addTypeFormats(dumper["type"].data(), formats);
|
||||
}
|
||||
}
|
||||
|
||||
void WatchHandler::addTypeFormats(const QByteArray &type, const QStringList &formats)
|
||||
{
|
||||
m_model->m_reportedTypeFormats.insert(QLatin1String(stripForFormat(type)), formats);
|
||||
|
||||
Reference in New Issue
Block a user