diff options
Diffstat (limited to 'kdbg/debugger.h')
-rw-r--r-- | kdbg/debugger.h | 118 |
1 files changed, 59 insertions, 59 deletions
diff --git a/kdbg/debugger.h b/kdbg/debugger.h index 7d2a367..d2fc30c 100644 --- a/kdbg/debugger.h +++ b/kdbg/debugger.h @@ -7,9 +7,9 @@ #ifndef DEBUGGER_H #define DEBUGGER_H -#include <qtimer.h> -#include <qdict.h> -#include <qstringlist.h> +#include <ntqtimer.h> +#include <ntqdict.h> +#include <ntqstringlist.h> #include "envvar.h" #include "exprwnd.h" /* some compilers require this */ @@ -25,7 +25,7 @@ class KTreeViewItem; class KConfig; class KConfigBase; class ProgramConfig; -class QListBox; +class TQListBox; class RegisterInfo; class ThreadInfo; class DebuggerDriver; @@ -37,14 +37,14 @@ struct DbgAddr; class KProcess; -class KDebugger : public QObject +class KDebugger : public TQObject { Q_OBJECT public: - KDebugger(QWidget* parent, /* will be used as the parent for dialogs */ + KDebugger(TQWidget* parent, /* will be used as the parent for dialogs */ ExprWnd* localVars, ExprWnd* watchVars, - QListBox* backtrace); + TQListBox* backtrace); ~KDebugger(); /** @@ -55,7 +55,7 @@ public: * * @return false if an error occurs. */ - bool debugProgram(const QString& executable, + bool debugProgram(const TQString& executable, DebuggerDriver* driver); /** @@ -63,30 +63,30 @@ public: * @param batch tells whether the core file was given on the * command line. */ - void useCoreFile(QString corefile, bool batch); + void useCoreFile(TQString corefile, bool batch); /** * Overrides the program argument in the per-program config * with a new value. */ - void overrideProgramArguments(const QString& args); + void overrideProgramArguments(const TQString& args); /** * Uses the specified pid to attach to the active program. */ - void setAttachPid(const QString& pid); + void setAttachPid(const TQString& pid); /** * Attaches to the specified process and debugs it. */ - void attachProgram(const QString& pid); + void attachProgram(const TQString& pid); /** * Returns the file name of the per-program config file for the * specified program. */ - static QString getConfigForExe(const QString& exe); + static TQString getConfigForExe(const TQString& exe); /** * The driver name entry in the per-program config file. @@ -147,24 +147,24 @@ public slots: * Moves the program counter to the specified line. * If an address is given, it is moved to the address. */ - void setProgramCounter(const QString&, int, const DbgAddr&); + void setProgramCounter(const TQString&, int, const DbgAddr&); public: /** * Queries the user for program arguments. */ - void programArgs(QWidget* parent); + void programArgs(TQWidget* parent); /** * Queries the user for program settings: Debugger command, terminal * emulator. */ - void programSettings(QWidget* parent); + void programSettings(TQWidget* parent); /** * Setup remote debugging device */ - void setRemoteDevice(const QString& remoteDevice) { m_remoteDevice = remoteDevice; } + void setRemoteDevice(const TQString& remoteDevice) { m_remoteDevice = remoteDevice; } /** * Run the debuggee until the specified line in the specified file is @@ -173,7 +173,7 @@ public: * @return false if the command was not executed, e.g. because the * debuggee is running at the moment. */ - bool runUntil(const QString& fileName, int lineNo); + bool runUntil(const TQString& fileName, int lineNo); /** * Set a breakpoint. @@ -185,7 +185,7 @@ public: * @return false if the command was not executed, e.g. because the * debuggee is running at the moment. */ - bool setBreakpoint(QString fileName, int lineNo, + bool setBreakpoint(TQString fileName, int lineNo, const DbgAddr& address, bool temporary); /** @@ -205,7 +205,7 @@ public: * @return false if the command was not executed, e.g. because the * debuggee is running at the moment. */ - bool enableDisableBreakpoint(QString fileName, int lineNo, + bool enableDisableBreakpoint(TQString fileName, int lineNo, const DbgAddr& address); /** @@ -235,7 +235,7 @@ public: * debuggee is running at the moment. */ bool conditionalBreakpoint(int id, - const QString& condition, + const TQString& condition, int ignoreCount) { return conditionalBreakpoint(breakpointById(id), condition, ignoreCount); } @@ -258,12 +258,12 @@ public: /** * Add a watch expression. */ - void addWatch(const QString& expr); + void addWatch(const TQString& expr); /** * Retrieves the current status message. */ - const QString& statusMessage() const { return m_statusMessage; } + const TQString& statusMessage() const { return m_statusMessage; } /** * Is the debugger ready to receive another high-priority command? @@ -295,7 +295,7 @@ public: BrkptROIterator breakpointsBegin() const { return m_brkpts.begin(); } BrkptROIterator breakpointsEnd() const { return m_brkpts.end(); } - const QString& executable() const { return m_executable; } + const TQString& executable() const { return m_executable; } /** * Terminal emulation level. @@ -312,19 +312,19 @@ public: TTYLevel ttyLevel() const { return m_ttyLevel; } /** Sets the terminal that is to be used by the debugger. */ - void setTerminal(const QString& term) { m_inferiorTerminal = term; } + void setTerminal(const TQString& term) { m_inferiorTerminal = term; } /** Returns the debugger driver. */ DebuggerDriver* driver() { return m_d; } /** Returns the pid that the debugger is currently attached to. */ - const QString& attachedPid() const { return m_attachedPid; } + const TQString& attachedPid() const { return m_attachedPid; } /** * The memory at that the expression evaluates to is watched. Can be * empty. Triggers a redisplay even if the expression did not change. */ - void setMemoryExpression(const QString& memexpr); + void setMemoryExpression(const TQString& memexpr); /** * Sets how the watched memory location is displayed. @@ -337,16 +337,16 @@ public: void restoreSettings(KConfig*); protected: - QString m_inferiorTerminal; - QString m_debuggerCmd; /* per-program setting */ + TQString m_inferiorTerminal; + TQString m_debuggerCmd; /* per-program setting */ TTYLevel m_ttyLevel; /* level of terminal emulation */ bool startDriver(); void stopDriver(); void writeCommand(); - QStringList m_watchEvalExpr; /* exprs to evaluate for watch window */ + TQStringList m_watchEvalExpr; /* exprs to evaluate for watch window */ std::list<Breakpoint> m_brkpts; - QString m_memoryExpression; /* memory location to watch */ + TQString m_memoryExpression; /* memory location to watch */ unsigned m_memoryFormat; /* how that output should look */ protected slots: @@ -354,9 +354,9 @@ protected slots: protected: void handleRunCommands(const char* output); void updateAllExprs(); - void updateProgEnvironment(const QString& args, const QString& wd, - const QDict<EnvVar>& newVars, - const QStringList& newOptions); + void updateProgEnvironment(const TQString& args, const TQString& wd, + const TQDict<EnvVar>& newVars, + const TQStringList& newOptions); void parseLocals(const char* output, std::list<ExprValue*>& newVars); void handleLocals(const char* output); bool handlePrint(CmdQueueItem* cmd, const char* output); @@ -380,10 +380,10 @@ protected: void determineType(ExprWnd* wnd, VarTree* var); void queueMemoryDump(bool immediate); CmdQueueItem* loadCoreFile(); - void openProgramConfig(const QString& name); + void openProgramConfig(const TQString& name); typedef std::list<Breakpoint>::iterator BrkptIterator; - BrkptIterator breakpointByFilePos(QString file, int lineNo, + BrkptIterator breakpointByFilePos(TQString file, int lineNo, const DbgAddr& address); BrkptIterator breakpointById(int id); CmdQueueItem* executeBreakpoint(const Breakpoint* bp, bool queueOnly); @@ -395,44 +395,44 @@ protected: bool enableDisableBreakpoint(BrkptIterator bp); bool deleteBreakpoint(BrkptIterator bp); bool conditionalBreakpoint(BrkptIterator bp, - const QString& condition, + const TQString& condition, int ignoreCount); bool m_haveExecutable; /* has an executable been specified */ bool m_programActive; /* is the program active (possibly halting in a brkpt)? */ bool m_programRunning; /* is the program executing (not stopped)? */ bool m_sharedLibsListed; /* do we know the shared libraries loaded by the prog? */ - QString m_executable; - QString m_corefile; - QString m_attachedPid; /* user input of attaching to pid */ - QString m_programArgs; - QString m_remoteDevice; - QString m_programWD; /* working directory of gdb */ - QDict<EnvVar> m_envVars; /* environment variables set by user */ - QStringList m_boolOptions; /* boolean options */ - QStringList m_sharedLibs; /* shared libraries used by program */ + TQString m_executable; + TQString m_corefile; + TQString m_attachedPid; /* user input of attaching to pid */ + TQString m_programArgs; + TQString m_remoteDevice; + TQString m_programWD; /* working directory of gdb */ + TQDict<EnvVar> m_envVars; /* environment variables set by user */ + TQStringList m_boolOptions; /* boolean options */ + TQStringList m_sharedLibs; /* shared libraries used by program */ ProgramTypeTable* m_typeTable; /* known types used by the program */ ProgramConfig* m_programConfig; /* program-specific settings (brkpts etc) */ void saveProgramSettings(); void restoreProgramSettings(); - QString readDebuggerCmd(); + TQString readDebuggerCmd(); // debugger process DebuggerDriver* m_d; bool m_explicitKill; /* whether we are killing gdb ourselves */ - QString m_statusMessage; + TQString m_statusMessage; protected slots: void gdbExited(KProcess*); void slotInferiorRunning(); void backgroundUpdate(); void gotoFrame(int); - void slotExpanding(QListViewItem*); + void slotExpanding(TQListViewItem*); void slotDeleteWatch(); - void slotValuePopup(const QString&); - void slotDisassemble(const QString&, int); - void slotValueEdited(VarTree*, const QString&); + void slotValuePopup(const TQString&); + void slotDisassemble(const TQString&, int); + void slotValueEdited(VarTree*, const TQString&); public slots: void setThread(int); void shutdown(); @@ -457,7 +457,7 @@ signals: * should NOT be changed). * @param address specifies the exact address of the PC or is empty. */ - void activateFileLine(const QString& file, int lineNo, const DbgAddr& address); + void activateFileLine(const TQString& file, int lineNo, const DbgAddr& address); /** * This signal indicates that the program counter has changed. @@ -472,7 +472,7 @@ signals: * where a function was called); the latter cases should be indicated * differently in the source window. */ - void updatePC(const QString& filename, int lineNo, + void updatePC(const TQString& filename, int lineNo, const DbgAddr& address, int frameNo); /** @@ -511,13 +511,13 @@ signals: /** * Indicates that the value for a value popup is ready. */ - void valuePopup(const QString&); + void valuePopup(const TQString&); /** * Provides the disassembled code of the location given by file and * line number (zero-based). */ - void disassembled(const QString& file, int line, const std::list<DisassembledCode>& code); + void disassembled(const TQString& file, int line, const std::list<DisassembledCode>& code); /** * Indicates that the program has stopped for any reason: by a @@ -531,7 +531,7 @@ signals: * @param msg is an error message or empty * @param memdump is the memory dump */ - void memoryDumpChanged(const QString&, const std::list<MemoryDump>&); + void memoryDumpChanged(const TQString&, const std::list<MemoryDump>&); /** * Gives other objects a chance to save program specific settings. @@ -546,11 +546,11 @@ signals: protected: ExprWnd& m_localVariables; ExprWnd& m_watchVariables; - QListBox& m_btWindow; + TQListBox& m_btWindow; // implementation helpers protected: - QWidget* parentWidget() { return static_cast<QWidget*>(parent()); } + TQWidget* parentWidget() { return static_cast<TQWidget*>(parent()); } }; #endif // DEBUGGER_H |