<rdar://problem/13521159>
LLDB is crashing when logging is enabled from lldb-perf-clang. This has to do with the global destructor chain as the process and its threads are being torn down. All logging channels now make one and only one instance that is kept in a global pointer which is never freed. This guarantees that logging can correctly continue as the process tears itself down. llvm-svn: 178191
This commit is contained in:
@@ -59,7 +59,7 @@ BreakpointResolverFileLine::SearchCallback
|
||||
SymbolContextList sc_list;
|
||||
|
||||
assert (m_breakpoint != NULL);
|
||||
LogSP log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_BREAKPOINTS));
|
||||
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_BREAKPOINTS));
|
||||
|
||||
// There is a tricky bit here. You can have two compilation units that #include the same file, and
|
||||
// in one of them the function at m_line_number is used (and so code and a line entry for it is generated) but in the
|
||||
|
||||
Reference in New Issue
Block a user