debugger: refactor the dumper class to make it work with gdb 7.0

This is an attempt to make it work with released gdb 7.0. It uses some
ugly workarounds to compensate for the missing gdb.Block and gdb.Symbol
structures.
This commit is contained in:
hjk
2009-12-09 09:53:43 +01:00
parent c311ab0a4f
commit 68bd4d2b95
3 changed files with 127 additions and 76 deletions

View File

@@ -4365,8 +4365,8 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
postCommand(_("show version"), CB(handleShowVersion));
postCommand(_("source -p ") + dumperSourcePath + _("dumper.py"));
postCommand(_("source -p ") + dumperSourcePath + _("gdbmacros.py"));
postCommand(_("python execfile('%1dumper.py')").arg(dumperSourcePath));
postCommand(_("python execfile('%1gdbmacros.py')").arg(dumperSourcePath));
postCommand(_("-interpreter-exec console \"help bb\""),
CB(handleIsSynchroneous));