Skip to content

Commit 7232667

Browse files
[lldb comparator] raise error if executable is not found (#31)
1 parent 184b1ad commit 7232667

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

debuggers/lldb/lldb_driver.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,13 @@ def __init__(self, base_args, regression_args):
2929

3030
base_error = lldb.SBError()
3131
base_target = self.base_lldb_instance.CreateTarget(base_args, "x86_64", "host", True, base_error)
32+
if not base_error.Success():
33+
raise Exception(base_error.GetCString())
3234

3335
regression_error = lldb.SBError()
3436
regression_target = self.regression_lldb_instance.CreateTarget(regression_args, "x86_64", "host", True, regression_error)
37+
if not regression_error.Success():
38+
raise Exception(regression_error.GetCString())
3539

3640
self.base_command_interpreter = self.base_lldb_instance.GetCommandInterpreter()
3741
self.regression_command_interpreter = self.regression_lldb_instance.GetCommandInterpreter()

0 commit comments

Comments
 (0)