mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
Work in progress for:
rdar://problem/10577182 Audit lldb API impl for places where we need to perform a NULL check Add NULL checks for SBStream APIs. llvm-svn: 146934
This commit is contained in:
@@ -59,6 +59,8 @@ SBStream::GetSize()
|
||||
void
|
||||
SBStream::Printf (const char *format, ...)
|
||||
{
|
||||
if (!format)
|
||||
return;
|
||||
va_list args;
|
||||
va_start (args, format);
|
||||
ref().PrintfVarArg (format, args);
|
||||
|
||||
@@ -74,7 +74,11 @@ class SourceManagerTestCase(TestBase):
|
||||
# 6 }
|
||||
self.expect(stream.GetData(), "Source code displayed correctly",
|
||||
exe=False,
|
||||
patterns = ['=> %d.*Hello world' % self.line])
|
||||
patterns = ['=> %d.*Hello world' % self.line])
|
||||
|
||||
# Boundary condition testings for SBStream(). LLDB should not crash!
|
||||
stream.Printf(None)
|
||||
stream.RedirectToFile(None, True)
|
||||
|
||||
def move_and_then_display_source(self):
|
||||
"""Test that target.source-map settings work by moving main.c to hidden/main.c."""
|
||||
|
||||
Reference in New Issue
Block a user