Debugger: Make Gdbmi threads parsing code re-usable.

Adapt watchutils code for new engine.

Acked-by: hjk
This commit is contained in:
Friedemann Kleint
2010-11-08 17:15:33 +01:00
parent c0303faa9e
commit 4ac2634de7
4 changed files with 51 additions and 28 deletions

View File

@@ -39,7 +39,7 @@
namespace Debugger {
namespace Internal {
class GdbMi;
////////////////////////////////////////////////////////////////////////
//
// ThreadsHandler
@@ -68,6 +68,8 @@ public:
// Clear out all frame information
void notifyRunning();
static Threads parseGdbmiThreads(const GdbMi &data, int *currentThread = 0);
private:
int rowCount(const QModelIndex &parent = QModelIndex()) const;
int columnCount(const QModelIndex &parent = QModelIndex()) const;