[Lldb-commits] [lldb] r298289 - Fix a problem with line tables & .o files that start with code with no line table entries.
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 20 12:19:03 PDT 2017
Date: Mon Mar 20 14:19:03 2017
New Revision: 298289
Fix a problem with line tables & .o files that start with code with no line table entries.
If you have code before the first line table entry when debugging with .o files on macOS, the
LineTable entry search code was assigning all that code to the first line table entry. Don't do that.
--- lldb/trunk/source/Symbol/LineTable.cpp (original)
+++ lldb/trunk/source/Symbol/LineTable.cpp Mon Mar 20 14:19:03 2017
@@ -230,6 +230,14 @@ bool LineTable::FindLineEntryByAddress(c
+ // There might be code in the containing objfile before the first line
+ // table entry. Make sure that does not get considered part of the first
+ // line table entry.
+ if (pos->file_addr > so_addr.GetFileAddress())
+ return false;
// Make sure we have a valid match and that the match isn't a
More information about the lldb-commits