Commit 2f115beb authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix previous commit.

parent 4c2f5d1e
......@@ -1089,6 +1089,25 @@ void CdbDebugEngine::loadAllSymbols()
qDebug() << Q_FUNC_INFO;
}
QList<Symbol> CdbDebugEngine::moduleSymbols(const QString &moduleName)
{
QList<Symbol> rc;
QString errorMessage;
bool success = false;
do {
if (m_d->isDebuggeeRunning()) {
errorMessage = tr("Cannot retrieve symbols while the debuggee is running.");
break;
}
if (!getModuleSymbols(m_d->m_pDebugSymbols, moduleName, &rc, &errorMessage))
break;
success = true;
} while (false);
if (!success)
qWarning("%s\n", qPrintable(errorMessage));
return rc;
}
static inline int registerFormatBase()
{
switch(checkedRegisterFormatAction()) {
......
......@@ -87,6 +87,7 @@ public:
virtual void reloadModules();
virtual void loadSymbols(const QString &moduleName);
virtual void loadAllSymbols();
virtual QList<Symbol> moduleSymbols(const QString &moduleName);
virtual void reloadRegisters();
virtual void reloadSourceFiles();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment