File tree 1 file changed +10
-0
lines changed
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) {
329
329
const std::vector<std::pair<ConstString, bool >> &entry_points (
330
330
GetEntryPointNames ());
331
331
for (std::pair<ConstString, bool > entry_point : entry_points) {
332
+ #if 0 // llvm.org version
332
333
const ConstString entry_point_name = entry_point.first;
333
334
const bool skip_prologue = entry_point.second;
334
335
SymbolContextList sc_list;
@@ -352,6 +353,15 @@ static lldb_private::LineEntry FindEntryPoint(Module *exe_module) {
352
353
}
353
354
}
354
355
}
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
355
365
}
356
366
return LineEntry ();
357
367
}
You can’t perform that action at this time.
0 commit comments