Skip to content

Commit

Permalink
debuginfo-test: Fix #45086.
Browse files Browse the repository at this point in the history
LLDB's output may be None instead of '', and that will cause type
mismatch when normalize_whitespace() expects a string instead of
None. This commit simply ensures we do pass '' even if the output
is None.
  • Loading branch information
kennytm committed Oct 7, 2017
1 parent bb4d149 commit 07b1899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/etc/lldb_batchmode.py
Expand Up @@ -81,7 +81,7 @@ def execute_command(command_interpreter, command):

if res.Succeeded():
if res.HasResult():
print(normalize_whitespace(res.GetOutput()), end='\n')
print(normalize_whitespace(res.GetOutput() or ''), end='\n')

# If the command introduced any breakpoints, make sure to register
# them with the breakpoint
Expand Down

0 comments on commit 07b1899

Please sign in to comment.