forked from qt-creator/qt-creator
debugger: keep track of library loads as reported by trk
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user