diff options
author | Greg Clayton <gclayton@apple.com> | 2012-07-17 03:23:13 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2012-07-17 03:23:13 +0000 |
commit | 23f59509a8790b04c691ec063c55724a3bfee7eb (patch) | |
tree | 9bd1537b53423b7a43ccd4b9bceb178960bbbb02 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
parent | 24a8378c4f5ab46f9156e8c271500a6e051c2fd4 (diff) | |
download | llvm-23f59509a8790b04c691ec063c55724a3bfee7eb.zip llvm-23f59509a8790b04c691ec063c55724a3bfee7eb.tar.gz llvm-23f59509a8790b04c691ec063c55724a3bfee7eb.tar.bz2 |
Ran the static analyzer on the codebase and found a few things.
llvm-svn: 160338
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectBreakpoint.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index 2e764ca..6228333 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -373,14 +373,8 @@ protected: Breakpoint *bp = NULL; FileSpec module_spec; - bool use_module = false; - int num_modules = m_options.m_modules.GetSize(); - const bool internal = false; - if ((num_modules > 0) && (break_type != eSetTypeAddress)) - use_module = true; - switch (break_type) { case eSetTypeFileAndLine: // Breakpoint by source position @@ -1673,8 +1667,6 @@ CommandObjectMultiwordBreakpoint::CommandObjectMultiwordBreakpoint (CommandInter "A set of commands for operating on breakpoints. Also see _regexp-break.", "breakpoint <command> [<command-options>]") { - bool status; - CommandObjectSP list_command_object (new CommandObjectBreakpointList (interpreter)); CommandObjectSP enable_command_object (new CommandObjectBreakpointEnable (interpreter)); CommandObjectSP disable_command_object (new CommandObjectBreakpointDisable (interpreter)); @@ -1693,14 +1685,14 @@ CommandObjectMultiwordBreakpoint::CommandObjectMultiwordBreakpoint (CommandInter command_command_object->SetCommandName ("breakpoint command"); modify_command_object->SetCommandName ("breakpoint modify"); - status = LoadSubCommand ("list", list_command_object); - status = LoadSubCommand ("enable", enable_command_object); - status = LoadSubCommand ("disable", disable_command_object); - status = LoadSubCommand ("clear", clear_command_object); - status = LoadSubCommand ("delete", delete_command_object); - status = LoadSubCommand ("set", set_command_object); - status = LoadSubCommand ("command", command_command_object); - status = LoadSubCommand ("modify", modify_command_object); + LoadSubCommand ("list", list_command_object); + LoadSubCommand ("enable", enable_command_object); + LoadSubCommand ("disable", disable_command_object); + LoadSubCommand ("clear", clear_command_object); + LoadSubCommand ("delete", delete_command_object); + LoadSubCommand ("set", set_command_object); + LoadSubCommand ("command", command_command_object); + LoadSubCommand ("modify", modify_command_object); } CommandObjectMultiwordBreakpoint::~CommandObjectMultiwordBreakpoint () |