debugger: keep track of library loads as reported by trk

This commit is contained in:
hjk
2009-10-02 10:02:34 +02:00
parent 8537864309
commit 3407aab9a5
2 changed files with 34 additions and 2 deletions

View File

@@ -114,9 +114,20 @@ enum TargetConstants
MemoryChunkSize = 256
};
struct Library
{
Library() {}
QString name;
uint codeseg;
uint dataseg;
};
struct Session
{
Session() {
Session() { reset(); }
void reset() {
cpuMajor = 0;
cpuMinor = 0;
bigEndian = 0;
@@ -130,6 +141,7 @@ struct Session
dataseg = 0;
currentThread = 0;
libraries.clear();
}
// Trk feedback
@@ -146,6 +158,9 @@ struct Session
uint dataseg;
QHash<uint, uint> addressToBP;
typedef QList<Library> Libraries;
Libraries libraries;
// Gdb request
uint currentThread;
QStringList modules;
@@ -160,6 +175,7 @@ struct Snapshot
Memory memory;
};
struct Breakpoint
{
Breakpoint(uint offset_ = 0)