Properly shutdown lldb by invoking SBDebugger_Terminate()
authorAdrian Prantl <aprantl@apple.com>
Thu, 9 Oct 2014 22:16:46 +0000 (22:16 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 9 Oct 2014 22:16:46 +0000 (22:16 +0000)
rdar://problem/18577039

llvm-svn: 219451

debuginfo-tests/llgdb.py

index 3bd25bf..9826b74 100644 (file)
@@ -142,12 +142,14 @@ NOTE: There are several resons why this may happen:
             print frame.EvaluateExpression(' '.join(cmd[1:]))
 
         elif re.match('^q|(quit)$', cmd[0]):
+            lldb.SBDebugger_Terminate()
             sys.exit(0)
 
         else:
             print debugger.HandleCommand(' '.join(cmd))
 
-    except SystemExit, e: raise e
+    except SystemExit, e:
+        raise e
     except:
         print 'Could not handle the command "%s"' % ' '.join(cmd)