debugger: fix 'run to line' with older versions of gdb

This commit is contained in:
hjk
2010-06-30 14:39:41 +02:00
parent ebba27484c
commit 6959a12211
2 changed files with 56 additions and 26 deletions

View File

@@ -31,8 +31,10 @@
#define DEBUGGER_GDBENGINE_H
#include "debuggerengine.h"
#include "gdbmi.h"
#include "localgdbprocess.h"
#include "stackframe.h"
#include "watchutils.h"
#include <QtCore/QByteArray>
@@ -303,7 +305,6 @@ private: ////////// Inferior Management //////////
virtual void executeRunToLine(const QString &fileName, int lineNumber);
virtual void executeRunToFunction(const QString &functionName);
// void handleExecRunToFunction(const GdbResponse &response);
virtual void executeJumpToLine(const QString &fileName, int lineNumber);
virtual void executeReturn();
@@ -312,6 +313,8 @@ private: ////////// Inferior Management //////////
void handleExecuteNext(const GdbResponse &response);
void handleExecuteReturn(const GdbResponse &response);
void handleExecuteJumpToLine(const GdbResponse &response);
void handleExecuteRunToLine(const GdbResponse &response);
//void handleExecuteRunToFunction(const GdbResponse &response);
void maybeHandleInferiorPidChanged(const QString &pid);
void handleInfoProc(const GdbResponse &response);
@@ -522,6 +525,9 @@ private: ////////// View & Data Stuff //////////
static QString m_toolTipExpression;
static QPoint m_toolTipPos;
static QByteArray tooltipIName();
// HACK:
StackFrame m_targetFrame;
};
} // namespace Internal