Changeset View
Changeset View
Standalone View
Standalone View
src/debugger.h
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 26 | public: | |||
---|---|---|---|---|---|
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 | /** If this is an external debugger, it returns whether it should be run in a terminal or not */ | 70 | /** If this is an external debugger, it returns whether it should be run in a terminal or not */ | ||
71 | bool runInTerminal() const; | 71 | bool runInTerminal() const; | ||
72 | 72 | | |||
73 | /** 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; | ||||
73 | 75 | | |||
74 | enum ExpandStringUsage { | 76 | enum ExpandStringUsage { | ||
75 | ExpansionUsagePlainText, | 77 | ExpansionUsagePlainText, | ||
76 | ExpansionUsageShell | 78 | ExpansionUsageShell | ||
77 | }; | 79 | }; | ||
78 | 80 | | |||
79 | static void expandString(QString & str, ExpandStringUsage usage = ExpansionUsagePlainText, | 81 | static void expandString(QString & str, ExpandStringUsage usage = ExpansionUsagePlainText, | ||
80 | const QString & tempFile = QString()); | 82 | const QString & tempFile = QString()); | ||
81 | 83 | | |||
82 | private: | 84 | private: | ||
83 | static QList<Debugger> availableDebuggers(const QString &path, const QString & backend); | 85 | static QList<Debugger> availableDebuggers(const QString &path, const QString & backend); | ||
84 | KSharedConfig::Ptr m_config; | 86 | KSharedConfig::Ptr m_config; | ||
85 | QString m_backend; | 87 | QString m_backend; | ||
86 | }; | 88 | }; | ||
87 | 89 | | |||
88 | #endif | 90 | #endif |