File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,7 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) {
329329 const std::vector<std::pair<ConstString, bool >> &entry_points (
330330 GetEntryPointNames ());
331331 for (std::pair<ConstString, bool > entry_point : entry_points) {
332+ #if 0 // llvm.org version
332333 const ConstString entry_point_name = entry_point.first;
333334 const bool skip_prologue = entry_point.second;
334335 SymbolContextList sc_list;
@@ -352,6 +353,15 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) {
352353 }
353354 }
354355 }
356+ #else // FIXME: upstream this!
357+ lldb_private::LineEntry line_entry (FindEntryPoint (executable_ptr));
358+ if (line_entry.IsValid ()) {
359+ SetDefaultFileAndLine (line_entry.file , line_entry.line );
360+ file_spec = m_last_file_sp->GetFileSpec ();
361+ line = m_last_line;
362+ return true ;
363+ }
364+ #endif
355365 }
356366 return LineEntry ();
357367}
You can’t perform that action at this time.
0 commit comments