centralize gdb comm log queuing

this drastically improves the usefulness of the debugger output window
by making internal and external messages appear in sync.
This commit is contained in:
Oswald Buddenhagen
2009-10-09 16:35:52 +02:00
parent 0a9a1e98d9
commit 8e6d25d14a
4 changed files with 27 additions and 29 deletions

View File

@@ -87,11 +87,6 @@ public:
explicit GdbEngine(DebuggerManager *manager);
~GdbEngine();
signals:
void gdbInputAvailable(int channel, const QString &msg);
void gdbOutputAvailable(int channel, const QString &msg);
void applicationOutputAvailable(const QString &output);
private:
friend class AbstractGdbAdapter;
friend class AttachGdbAdapter;
@@ -235,6 +230,11 @@ private:
void updateAll();
void updateLocals();
void gdbInputAvailable(int channel, const QString &msg)
{ m_manager->showDebuggerInput(channel, msg); }
void gdbOutputAvailable(int channel, const QString &msg)
{ m_manager->showDebuggerOutput(channel, msg); }
private slots:
void readGdbStandardOutput();
void readGdbStandardError();