Changeset View
Changeset View
Standalone View
Standalone View
src/debugger.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 26 | public: | |||
---|---|---|---|---|---|
62 | /** Returns the command that should be run to use the debugger */ | 62 | /** Returns the command that should be run to use the debugger */ | ||
63 | QString command() const; | 63 | QString command() const; | ||
64 | 64 | | |||
65 | /** Returns the commands that should be given to the debugger when | 65 | /** Returns the commands that should be given to the debugger when | ||
66 | * run in batch mode in order to generate a backtrace | 66 | * run in batch mode in order to generate a backtrace | ||
67 | */ | 67 | */ | ||
68 | QString backtraceBatchCommands() const; | 68 | QString backtraceBatchCommands() const; | ||
69 | 69 | | |||
70 | /** Returns the commands that should be given to the debugger before | ||||
71 | * getting the backtrace | ||||
72 | */ | ||||
73 | QString preambleCommands() const; | ||||
74 | | ||||
70 | /** If this is an external debugger, it returns whether it should be run in a terminal or not */ | 75 | /** If this is an external debugger, it returns whether it should be run in a terminal or not */ | ||
71 | bool runInTerminal() const; | 76 | bool runInTerminal() const; | ||
72 | 77 | | |||
73 | /** Returns the value of the arbitrary configuration parameter @param key, or an empty QString if @param key isn't defined */ | 78 | /** Returns the value of the arbitrary configuration parameter @param key, or an empty QString if @param key isn't defined */ | ||
74 | QString backendValueOfParameter(const QString &key) const; | 79 | QString backendValueOfParameter(const QString &key) const; | ||
75 | 80 | | |||
76 | enum ExpandStringUsage { | 81 | enum ExpandStringUsage { | ||
77 | ExpansionUsagePlainText, | 82 | ExpansionUsagePlainText, | ||
78 | ExpansionUsageShell | 83 | ExpansionUsageShell | ||
79 | }; | 84 | }; | ||
80 | 85 | | |||
81 | static void expandString(QString & str, ExpandStringUsage usage = ExpansionUsagePlainText, | 86 | static void expandString(QString & str, ExpandStringUsage usage = ExpansionUsagePlainText, | ||
82 | const QString & tempFile = QString()); | 87 | const QString & tempFile = QString(), const QString & preambleFile = QString()); | ||
83 | 88 | | |||
84 | private: | 89 | private: | ||
85 | static QList<Debugger> availableDebuggers(const QString &path, const QString & backend); | 90 | static QList<Debugger> availableDebuggers(const QString &path, const QString & backend); | ||
86 | KSharedConfig::Ptr m_config; | 91 | KSharedConfig::Ptr m_config; | ||
87 | QString m_backend; | 92 | QString m_backend; | ||
88 | }; | 93 | }; | ||
89 | 94 | | |||
90 | #endif | 95 | #endif |