[Lldb-commits] [PATCH] D108816: [lldb] Return all line entries matchign a line if no column is specified
Kim-Anh Tran via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 27 05:27:08 PDT 2021
kimanh created this revision.
kimanh added reviewers: mib, JDevlieghere.
kimanh published this revision for review.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Previously, if no column was specified, ResolveSymbolContext would take
the first match returned by FindLineEntryIndexByFileIndex, and reuse it
to find subsequent exact matches. With the introduction of columns, columns
are now considered when matching the line entries.
This leads to a problem if one wants to get all existing line entries
that match that line, since now the column is also used for the exact match.
This way, all line entries are filtered out that have a different
column number, but the same line number.
This patch changes that by ignoring the column information of the first match
if the original request of ResolveSymbolContext was also ignoring it.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D108816
Files:
lldb/source/Symbol/CompileUnit.cpp
lldb/unittests/Symbol/TestLineEntry.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108816.369076.patch
Type: text/x-patch
Size: 5157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210827/d0d89986/attachment-0001.bin>
More information about the lldb-commits
mailing list