summaryrefslogtreecommitdiff
path: root/src/plugins/debugger
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger')
-rw-r--r--src/plugins/debugger/breakhandler.cpp2
-rw-r--r--src/plugins/debugger/breakpoint.h4
-rw-r--r--src/plugins/debugger/consolewindow.cpp4
-rw-r--r--src/plugins/debugger/debuggerconstants.h4
-rw-r--r--src/plugins/debugger/gdb/gdbengine.h8
-rw-r--r--src/plugins/debugger/gdb/gdbmi.cpp2
-rw-r--r--src/plugins/debugger/gdb/gdbmi.h4
-rw-r--r--src/plugins/debugger/gdb/remotegdbprocess.h2
-rw-r--r--src/plugins/debugger/gdb/symbian.h2
-rw-r--r--src/plugins/debugger/lldb/ipcengineguest.h2
-rw-r--r--src/plugins/debugger/lldb/ipcenginehost.h2
-rw-r--r--src/plugins/debugger/logwindow.cpp2
-rw-r--r--src/plugins/debugger/moduleshandler.h4
-rw-r--r--src/plugins/debugger/tcf/json.h2
-rw-r--r--src/plugins/debugger/watchhandler.h2
-rw-r--r--src/plugins/debugger/watchutils.cpp2
16 files changed, 24 insertions, 24 deletions
diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index 8cc0601c1f..3356f53764 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -1036,7 +1036,7 @@ static QString stateToString(BreakpointState state)
case BreakpointDead: return "Dead";
default: return "<invalid state>";
}
-};
+}
bool BreakHandler::BreakpointItem::needsChange() const
{
diff --git a/src/plugins/debugger/breakpoint.h b/src/plugins/debugger/breakpoint.h
index 7db0e01d29..e4d873cb02 100644
--- a/src/plugins/debugger/breakpoint.h
+++ b/src/plugins/debugger/breakpoint.h
@@ -54,7 +54,7 @@ enum BreakpointType
BreakpointAtThrow,
BreakpointAtCatch,
BreakpointAtMain,
- Watchpoint,
+ Watchpoint
};
enum BreakpointState
@@ -67,7 +67,7 @@ enum BreakpointState
BreakpointInserted,
BreakpointRemoveRequested,
BreakpointRemoveProceeding,
- BreakpointDead,
+ BreakpointDead
};
class BreakpointParameters
diff --git a/src/plugins/debugger/consolewindow.cpp b/src/plugins/debugger/consolewindow.cpp
index eecb3aa769..9c2b0f0cc7 100644
--- a/src/plugins/debugger/consolewindow.cpp
+++ b/src/plugins/debugger/consolewindow.cpp
@@ -151,7 +151,7 @@ public:
History() : m_index(0) {}
void append(const QString &item) {
m_items.removeAll(item);
- m_items.append(item); m_index = m_items.size() - 1;
+ m_items.append(item); m_index = m_items.size() - 1;
}
void down() { m_index = qMin(m_index + 1, m_items.size()); }
void up() { m_index = qMax(m_index - 1, 0); }
@@ -289,7 +289,7 @@ ConsoleWindow::ConsoleWindow(QWidget *parent)
//connect(m_console, SIGNAL(statusMessageRequested(QString,int)),
// this, SIGNAL(statusMessageRequested(QString,int)));
-};
+}
void ConsoleWindow::showOutput(int channel, const QString &output)
{
diff --git a/src/plugins/debugger/debuggerconstants.h b/src/plugins/debugger/debuggerconstants.h
index 3f734bd166..904c46ecfd 100644
--- a/src/plugins/debugger/debuggerconstants.h
+++ b/src/plugins/debugger/debuggerconstants.h
@@ -162,7 +162,7 @@ enum DebuggerCapabilities
CreateFullBacktraceCapability = 0x800,
AddWatcherCapability = 0x1000,
WatchpointCapability = 0x2000,
- ShowModuleSymbolsCapability = 0x4000,
+ ShowModuleSymbolsCapability = 0x4000
};
enum LogChannel
@@ -209,7 +209,7 @@ enum ModelRoles
LocalsIsWatchpointAtPointerValueRole,
// Snapshots
- SnapshotCapabilityRole,
+ SnapshotCapabilityRole
};
enum DebuggerEngineType
diff --git a/src/plugins/debugger/gdb/gdbengine.h b/src/plugins/debugger/gdb/gdbengine.h
index 1b095e998e..97239fb4f9 100644
--- a/src/plugins/debugger/gdb/gdbengine.h
+++ b/src/plugins/debugger/gdb/gdbengine.h
@@ -72,7 +72,7 @@ enum DebuggingHelperState
DebuggingHelperUninitialized,
DebuggingHelperLoadTried,
DebuggingHelperAvailable,
- DebuggingHelperUnavailable,
+ DebuggingHelperUnavailable
};
@@ -182,7 +182,7 @@ private: ////////// Gdb Command Management //////////
enum GdbCommandFlag {
NoFlags = 0,
// The command needs a stopped inferior.
- NeedsStop = 1,
+ NeedsStop = 1,
// No need to wait for the reply before continuing inferior.
Discardable = 2,
// Trigger watch model rebuild when no such commands are pending anymore.
@@ -201,7 +201,7 @@ private: ////////// Gdb Command Management //////////
// This command needs to be send immediately.
Immediate = 256,
// This is a command that needs to be wrapped into -interpreter-exec console
- ConsoleCommand = 512,
+ ConsoleCommand = 512
};
Q_DECLARE_FLAGS(GdbCommandFlags, GdbCommandFlag)
private:
@@ -524,7 +524,7 @@ private: ////////// View & Data Stuff //////////
QtDumperHelper m_dumperHelper;
QString m_gdb;
- //
+ //
// Convenience Functions
//
QString errorMessage(QProcess::ProcessError error);
diff --git a/src/plugins/debugger/gdb/gdbmi.cpp b/src/plugins/debugger/gdb/gdbmi.cpp
index 158a1fc2b9..cf1346b0d5 100644
--- a/src/plugins/debugger/gdb/gdbmi.cpp
+++ b/src/plugins/debugger/gdb/gdbmi.cpp
@@ -386,7 +386,7 @@ QByteArray GdbResponse::stringFromResultClass(GdbResultClass resultClass)
case GdbResultExit: return "exit";
default: return "unknown";
}
-};
+}
QByteArray GdbResponse::toString() const
{
diff --git a/src/plugins/debugger/gdb/gdbmi.h b/src/plugins/debugger/gdb/gdbmi.h
index 8719082720..5a4436cd4e 100644
--- a/src/plugins/debugger/gdb/gdbmi.h
+++ b/src/plugins/debugger/gdb/gdbmi.h
@@ -100,7 +100,7 @@ public:
Invalid,
Const,
Tuple,
- List,
+ List
};
Type m_type;
@@ -152,7 +152,7 @@ enum GdbResultClass
GdbResultRunning,
GdbResultConnected,
GdbResultError,
- GdbResultExit,
+ GdbResultExit
};
class GdbResponse
diff --git a/src/plugins/debugger/gdb/remotegdbprocess.h b/src/plugins/debugger/gdb/remotegdbprocess.h
index 8fafe9560b..f218360933 100644
--- a/src/plugins/debugger/gdb/remotegdbprocess.h
+++ b/src/plugins/debugger/gdb/remotegdbprocess.h
@@ -91,7 +91,7 @@ private slots:
private:
enum State {
Inactive, Connecting, CreatingFifo, StartingFifoReader,
- StartingGdb, RunningGdb,
+ StartingGdb, RunningGdb
};
static QByteArray readerCmdLine(const QByteArray &file);
diff --git a/src/plugins/debugger/gdb/symbian.h b/src/plugins/debugger/gdb/symbian.h
index 791653f40a..9174c56bf7 100644
--- a/src/plugins/debugger/gdb/symbian.h
+++ b/src/plugins/debugger/gdb/symbian.h
@@ -84,7 +84,7 @@ namespace Symbian {
enum CodeMode
{
ArmMode = 0,
- ThumbMode,
+ ThumbMode
};
enum TargetConstants
diff --git a/src/plugins/debugger/lldb/ipcengineguest.h b/src/plugins/debugger/lldb/ipcengineguest.h
index be939e4929..ce5189ef73 100644
--- a/src/plugins/debugger/lldb/ipcengineguest.h
+++ b/src/plugins/debugger/lldb/ipcengineguest.h
@@ -124,7 +124,7 @@ public:
UpdateWatchData = 47,
FrameSourceFetched = 48
};
- Q_ENUMS(Function);
+ Q_ENUMS(Function)
DebuggerState state() const;
void notifyEngineSetupOk();
diff --git a/src/plugins/debugger/lldb/ipcenginehost.h b/src/plugins/debugger/lldb/ipcenginehost.h
index b36840641c..aa6eb534a4 100644
--- a/src/plugins/debugger/lldb/ipcenginehost.h
+++ b/src/plugins/debugger/lldb/ipcenginehost.h
@@ -85,7 +85,7 @@ public:
RequestUpdateWatchData = 25,
FetchFrameSource = 26
};
- Q_ENUMS(Function);
+ Q_ENUMS(Function)
void setupEngine();
void setupInferior();
diff --git a/src/plugins/debugger/logwindow.cpp b/src/plugins/debugger/logwindow.cpp
index bdd731541a..2b76c9e254 100644
--- a/src/plugins/debugger/logwindow.cpp
+++ b/src/plugins/debugger/logwindow.cpp
@@ -382,7 +382,7 @@ LogWindow::LogWindow(QWidget *parent)
this, SIGNAL(statusMessageRequested(QString,int)));
connect(m_inputText, SIGNAL(commandSelected(int)),
m_combinedText, SLOT(gotoResult(int)));
-};
+}
void LogWindow::showOutput(int channel, const QString &output)
{
diff --git a/src/plugins/debugger/moduleshandler.h b/src/plugins/debugger/moduleshandler.h
index 0d7d04a41f..8bd05edfc2 100644
--- a/src/plugins/debugger/moduleshandler.h
+++ b/src/plugins/debugger/moduleshandler.h
@@ -75,12 +75,12 @@ public:
enum SymbolReadState {
UnknownReadState, // Not tried.
ReadFailed, // Tried to read, but failed.
- ReadOk, // Dwarf index available.
+ ReadOk // Dwarf index available.
};
enum SymbolType {
UnknownType, // Unknown.
PlainSymbols, // Ordinary symbols available.
- FastSymbols, // Dwarf index available.
+ FastSymbols // Dwarf index available.
};
QString moduleName;
QString modulePath;
diff --git a/src/plugins/debugger/tcf/json.h b/src/plugins/debugger/tcf/json.h
index 711a087b1b..611e146df3 100644
--- a/src/plugins/debugger/tcf/json.h
+++ b/src/plugins/debugger/tcf/json.h
@@ -51,7 +51,7 @@ public:
String,
Number,
Object,
- Array,
+ Array
};
Type m_type;
diff --git a/src/plugins/debugger/watchhandler.h b/src/plugins/debugger/watchhandler.h
index 38f34a4106..f75509599a 100644
--- a/src/plugins/debugger/watchhandler.h
+++ b/src/plugins/debugger/watchhandler.h
@@ -59,7 +59,7 @@ enum IntegerFormat
DecimalFormat = 0, // Keep that at 0 as default.
HexadecimalFormat,
BinaryFormat,
- OctalFormat,
+ OctalFormat
};
class WatchModel : public QAbstractItemModel
diff --git a/src/plugins/debugger/watchutils.cpp b/src/plugins/debugger/watchutils.cpp
index a21af15c46..9eade3983d 100644
--- a/src/plugins/debugger/watchutils.cpp
+++ b/src/plugins/debugger/watchutils.cpp
@@ -691,7 +691,7 @@ bool currentTextEditorPosition(QString *fileNameIn /* = 0 */,
int *lineNumberIn /* = 0 */)
{
QString fileName;
- int lineNumber;
+ int lineNumber = 0;
if (TextEditor::ITextEditor *textEditor = currentTextEditor()) {
if (const Core::IFile *file = textEditor->file()) {
fileName = file->fileName();