forked from qt-creator/qt-creator
		
	Debugger: Improve gdb binary settings handling.
- Remove non-executable entries on reading (check only absolute paths since path search is too expensive). - Make sure gdb binary settings are not written out unless the user really changes them. Reviewed-by: aep <arvid.picciani@nokia.com> Acked-By: hjk Reviewed-by: Tim Jenssen <tim.jenssen@nokia.com>
This commit is contained in:
		@@ -55,10 +55,8 @@ public:
 | 
			
		||||
    explicit DebuggerSettings(QObject *parent = 0);
 | 
			
		||||
    ~DebuggerSettings();
 | 
			
		||||
 | 
			
		||||
    GdbBinaryToolChainMap gdbBinaryToolChainMap() const
 | 
			
		||||
        { return m_gdbBinaryToolChainMap; }
 | 
			
		||||
    void setGdbBinaryToolChainMap(const GdbBinaryToolChainMap &map)
 | 
			
		||||
        { m_gdbBinaryToolChainMap = map; }
 | 
			
		||||
    GdbBinaryToolChainMap gdbBinaryToolChainMap() const;
 | 
			
		||||
    void setGdbBinaryToolChainMap(const GdbBinaryToolChainMap &map);
 | 
			
		||||
 | 
			
		||||
    void insertItem(int code, Utils::SavedAction *item);
 | 
			
		||||
    Utils::SavedAction *item(int code) const;
 | 
			
		||||
@@ -72,11 +70,14 @@ public slots:
 | 
			
		||||
    void writeSettings(QSettings *settings) const;
 | 
			
		||||
 | 
			
		||||
private:
 | 
			
		||||
    void readGdbBinarySettings(const QSettings *settings);
 | 
			
		||||
    void writeGdbBinarySettings(QSettings *settings) const;
 | 
			
		||||
 | 
			
		||||
    QHash<int, Utils::SavedAction *> m_items;
 | 
			
		||||
    GdbBinaryToolChainMap m_gdbBinaryToolChainMap;
 | 
			
		||||
    bool m_gdbBinariesChanged;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
///////////////////////////////////////////////////////////
 | 
			
		||||
 | 
			
		||||
enum DebuggerActionCode
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user