diff options
| author | Jim Ingham <jingham@apple.com> | 2015-02-12 17:37:46 +0000 |
|---|---|---|
| committer | Jim Ingham <jingham@apple.com> | 2015-02-12 17:37:46 +0000 |
| commit | e732052f1661e9760827c18093169cf137c89850 (patch) | |
| tree | 037a145205736729149f7791e98f6734db37e4c3 /lldb/source/Commands/CommandObjectBreakpoint.cpp | |
| parent | 29786d4c161e6fd458fb2f1abc58a9f3401ee7f7 (diff) | |
| download | bcm5719-llvm-e732052f1661e9760827c18093169cf137c89850.tar.gz bcm5719-llvm-e732052f1661e9760827c18093169cf137c89850.zip | |
Add an -A option to "break set -p" to search all files for matches. Also add the version of
SBTarget::BreakpointCreateBySourceRegex that takes file spec lists to the Python interface,
and add a test for this.
<rdar://problem/19805037>
llvm-svn: 228938
Diffstat (limited to 'lldb/source/Commands/CommandObjectBreakpoint.cpp')
| -rw-r--r-- | lldb/source/Commands/CommandObjectBreakpoint.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectBreakpoint.cpp b/lldb/source/Commands/CommandObjectBreakpoint.cpp index 025524b3b9a..b4a6b48cabf 100644 --- a/lldb/source/Commands/CommandObjectBreakpoint.cpp +++ b/lldb/source/Commands/CommandObjectBreakpoint.cpp @@ -112,7 +112,8 @@ public: m_hardware (false), m_language (eLanguageTypeUnknown), m_skip_prologue (eLazyBoolCalculate), - m_one_shot (false) + m_one_shot (false), + m_all_files (false) { } @@ -135,6 +136,10 @@ public: } break; + case 'A': + m_all_files = true; + break; + case 'b': m_func_names.push_back (option_arg); m_func_name_type_mask |= eFunctionNameTypeBase; @@ -339,6 +344,7 @@ public: m_one_shot = false; m_use_dummy = false; m_breakpoint_names.clear(); + m_all_files = false; } const OptionDefinition* @@ -376,6 +382,7 @@ public: LazyBool m_skip_prologue; bool m_one_shot; bool m_use_dummy; + bool m_all_files; }; @@ -505,7 +512,7 @@ protected: { const size_t num_files = m_options.m_filenames.GetSize(); - if (num_files == 0) + if (num_files == 0 && !m_options.m_all_files) { FileSpec file; if (!GetDefaultFile (target, file, result)) @@ -729,6 +736,9 @@ CommandObjectBreakpointSet::CommandOptions::g_option_table[] = "specified with the -f option. The -f option can be specified more than once. " "If no source files are specified, uses the current \"default source file\"" }, + { LLDB_OPT_SET_9, false, "all-files", 'A', OptionParser::eNoArgument, NULL, NULL, 0, eArgTypeNone, + "All files are searched for source pattern matches." }, + { LLDB_OPT_SET_10, true, "language-exception", 'E', OptionParser::eRequiredArgument, NULL, NULL, 0, eArgTypeLanguage, "Set the breakpoint on exceptions thrown by the specified language (without options, on throw but not catch.)" }, |

