Debugger: Add infrastructure for loading Symbian .sym files.

Add local symbol files for libraries to gdb along with
section addresses using the command
add-symbol-file <file> <address[es]>.

Whenever TRK reports a module load, check for a matching local
.sym file in a folder pointed to by the
QTC_SYMBIAN_SYMBOLFILE_CACHE environment variable
or the folder of the application executable symbol file (which
should be udeb/urel of EPOC).

Rubber-stamped-by: hjk
This commit is contained in:
Friedemann Kleint
2010-12-02 14:07:53 +01:00
parent add6996d4f
commit e8e4ce9728
6 changed files with 113 additions and 0 deletions

View File

@@ -197,6 +197,16 @@ extern const char *gdbArchitectureXml;
QVector<QByteArray> gdbStartupSequence();
// Look up in symbol file matching library name in local cache
QString localSymFileForLibrary(const QByteArray &libName,
const QString &standardSymDirectory = QString());
// Return a load command for a local symbol file for a library
QByteArray symFileLoadCommand(const QString &symFileName, quint64 code,
quint64 data = 0);
// Utility message
QString msgLoadLocalSymFile(const QString &symFileName,
const QByteArray &libName, quint64 code);
} // namespace Symbian
// Generic gdb server helpers: read 'm','X' commands.