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 | 8b976676e3cdcaec8ded4c00bdcfe08a63a3ba1f (patch) | |
tree | f4af77fe468cdf83c390a1d919bd09c12b160e71 /lldb/source/Core/SourceManager.cpp | |
parent | ab2421be769bcbdaad83cf11c174ac01919997fe (diff) |
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.
Diffstat (limited to 'lldb/source/Core/SourceManager.cpp')
-rw-r--r-- | lldb/source/Core/SourceManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Core/SourceManager.cpp b/lldb/source/Core/SourceManager.cpp index de24b1e0b39..4d077b3bfe4 100644 --- a/lldb/source/Core/SourceManager.cpp +++ b/lldb/source/Core/SourceManager.cpp @@ -245,8 +245,9 @@ SourceManager::GetDefaultFileAndLine (FileSpec &file_spec, uint32_t &line) uint32_t num_matches; ConstString main_name("main"); bool symbols_okay = false; // Force it to be a debug symbol. + bool inlines_okay = true; bool append = false; - num_matches = executable_ptr->FindFunctions (main_name, NULL, lldb::eFunctionNameTypeBase, symbols_okay, append, sc_list); + num_matches = executable_ptr->FindFunctions (main_name, NULL, lldb::eFunctionNameTypeBase, inlines_okay, symbols_okay, append, sc_list); for (uint32_t idx = 0; idx < num_matches; idx++) { SymbolContext sc; |