debugger: add option to search debug info in well-known locations

Change-Id: I16e32f0e44fc628c7dca5270083a9bb1050769c1
Reviewed-on: http://codereview.qt-project.org/5371
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-09-22 09:30:50 +02:00
committed by hjk
parent 3a110439e9
commit 85a1841f2c
6 changed files with 61 additions and 19 deletions

View File

@@ -55,17 +55,18 @@ public:
void toSettings(QSettings *) const;
void fromSettings(QSettings *);
bool equals(const GlobalDebuggerOptions &rhs) const { return sourcePathMap == rhs.sourcePathMap; }
bool operator==(const GlobalDebuggerOptions &rhs) const
{ return sourcePathMap == rhs.sourcePathMap; }
bool operator!=(const GlobalDebuggerOptions &rhs) const
{ return sourcePathMap != rhs.sourcePathMap; }
SourcePathMap sourcePathMap;
};
inline bool operator==(const GlobalDebuggerOptions &o1, const GlobalDebuggerOptions &o2) { return o1.equals(o2); }
inline bool operator!=(const GlobalDebuggerOptions &o1, const GlobalDebuggerOptions &o2) { return !o1.equals(o2); }
class DebuggerSettings : public QObject
{
Q_OBJECT // For tr().
public:
explicit DebuggerSettings(QSettings *setting);
~DebuggerSettings();
@@ -118,6 +119,7 @@ enum DebuggerActionCode
LoadGdbInit,
GdbScriptFile,
GdbWatchdogTimeout,
AutoEnrichParameters,
TargetAsync,
// Stack