summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@fb.com>2023-11-06 10:09:59 -0800
committerGitHub <noreply@github.com>2023-11-06 10:09:59 -0800
commit27033cc66500b7578b2cbf297b7881eef0cafdac (patch)
treef7bbe08203214d5b5f3f68dd738d510770c94cc8 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parentd6b69a1bb9f5db5cfa24d372e4aab6365c1496f9 (diff)
Fix line table lookups in line tables with multiple lines with the sa… (#70879)
Fix line table lookups in line tables with multiple lines with the same address. Compilers emit line tables that have multiple line table entries with the same address. When doing lookups, we always need to use the last line entry if a lookup address matches the address of one or more line entries. This is because the size of an address range for a line uses the next line entry to figure out how big the current line entry is. If the next line entry has the same address, that means the current line entry has a size of zero, so no bytes correspond to the line entry. This patch ensures that lookups will always pick the last matching line entry when the lookup address matches more than one line entry.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions