diff options
author | Sean Callanan <scallanan@apple.com> | 2012-02-10 22:52:19 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2012-02-10 22:52:19 +0000 |
commit | 9df05fbb7f651ee824c80161db5833bf412f9997 (patch) | |
tree | 30e09e7eab43f7792f6d9a027fa79aa16f009d95 /lldb/source/Commands/CommandObjectSource.cpp | |
parent | 59fe3f89cb4e79364ff6e9ac8d25d3e7855b153f (diff) | |
download | llvm-9df05fbb7f651ee824c80161db5833bf412f9997.zip llvm-9df05fbb7f651ee824c80161db5833bf412f9997.tar.gz llvm-9df05fbb7f651ee824c80161db5833bf412f9997.tar.bz2 |
Extended function lookup to allow the user to
indicate whether inline functions are desired.
This allows the expression parser, for instance,
to filter out inlined functions when looking for
functions it can call.
llvm-svn: 150279
Diffstat (limited to 'lldb/source/Commands/CommandObjectSource.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectSource.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectSource.cpp b/lldb/source/Commands/CommandObjectSource.cpp index 21f6339..7b26299 100644 --- a/lldb/source/Commands/CommandObjectSource.cpp +++ b/lldb/source/Commands/CommandObjectSource.cpp @@ -299,6 +299,7 @@ public: SymbolContextList sc_list; ConstString name(m_options.symbol_name.c_str()); bool include_symbols = false; + bool include_inlines = true; bool append = true; size_t num_matches = 0; @@ -312,13 +313,13 @@ public: { matching_modules.Clear(); target->GetImages().FindModules (&module_spec, NULL, NULL, NULL, matching_modules); - num_matches += matching_modules.FindFunctions (name, eFunctionNameTypeAuto, include_symbols, append, sc_list); + num_matches += matching_modules.FindFunctions (name, eFunctionNameTypeAuto, include_symbols, include_inlines, append, sc_list); } } } else { - num_matches = target->GetImages().FindFunctions (name, eFunctionNameTypeAuto, include_symbols, append, sc_list); + num_matches = target->GetImages().FindFunctions (name, eFunctionNameTypeAuto, include_symbols, include_inlines, append, sc_list); } SymbolContext sc; |