Debugger: Don't quit on inferior-exited.

We might have "follow-fork-mode child" and it's only the parent exiting.
Instead quit when the last known thread is gone.

Change-Id: I77a017e6f57ae0ee383aabd2b6f0377ff8261d41
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
This commit is contained in:
hjk
2015-06-12 15:17:14 +02:00
parent f15d177ffd
commit 42be4ef64f
3 changed files with 38 additions and 12 deletions

View File

@@ -57,6 +57,7 @@ public:
ThreadId currentThread() const;
ThreadId threadAt(int index) const;
void setCurrentThread(ThreadId id);
QByteArray pidForGroupId(const QByteArray &groupId) const;
void updateThread(const ThreadData &threadData);
void updateThreads(const GdbMi &data);
@@ -67,6 +68,9 @@ public:
ThreadData thread(ThreadId id) const;
QAbstractItemModel *model();
void notifyGroupCreated(const QByteArray &groupId, const QByteArray &pid);
bool notifyGroupExited(const QByteArray &groupId); // Returns true when empty.
// Clear out all frame information
void notifyRunning(const QByteArray &data);
void notifyRunning(ThreadId threadId);
@@ -86,6 +90,7 @@ private:
ThreadId m_currentId;
bool m_resetLocationScheduled;
QHash<QByteArray, QByteArray> m_pidForGroupId;
};
} // namespace Internal