debugger: automatically update breakpoints after manually loading symbols

This commit is contained in:
hjk
2011-02-04 15:32:30 +01:00
parent 10fc54f337
commit 62ece8f892

View File

@@ -2715,6 +2715,7 @@ void GdbEngine::loadSymbols(const QString &moduleName)
// FIXME: gdb does not understand quoted names here (tested with 6.8) // FIXME: gdb does not understand quoted names here (tested with 6.8)
postCommand("sharedlibrary " + dotEscape(moduleName.toLocal8Bit())); postCommand("sharedlibrary " + dotEscape(moduleName.toLocal8Bit()));
reloadModulesInternal(); reloadModulesInternal();
reloadBreakListInternal();
reloadStack(true); reloadStack(true);
updateLocals(); updateLocals();
} }
@@ -2723,6 +2724,7 @@ void GdbEngine::loadAllSymbols()
{ {
postCommand("sharedlibrary .*"); postCommand("sharedlibrary .*");
reloadModulesInternal(); reloadModulesInternal();
reloadBreakListInternal();
reloadStack(true); reloadStack(true);
updateLocals(); updateLocals();
} }
@@ -2746,6 +2748,7 @@ void GdbEngine::loadSymbolsForStack()
} }
if (needUpdate) { if (needUpdate) {
reloadModulesInternal(); reloadModulesInternal();
reloadBreakListInternal();
reloadStack(true); reloadStack(true);
updateLocals(); updateLocals();
} }
@@ -2835,10 +2838,6 @@ void GdbEngine::reloadModulesInternal()
{ {
m_modulesListOutdated = false; m_modulesListOutdated = false;
postCommand("info shared", NeedsStop, CB(handleModulesList)); postCommand("info shared", NeedsStop, CB(handleModulesList));
#if 0
if (m_gdbVersion < 70000 && !m_isMacGdb)
postCommand("set stop-on-solib-events 1");
#endif
} }
void GdbEngine::handleModulesList(const GdbResponse &response) void GdbEngine::handleModulesList(const GdbResponse &response)