btjs no longer accepts optional frame count argument
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Jun 2016 02:26:54 +0000 (02:26 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 29 Jun 2016 02:26:54 +0000 (02:26 +0000)
https://bugs.webkit.org/show_bug.cgi?id=159235

Reviewed by Saam Barati.

Fix the detection of optional backtrace-depth parameter to use the length
of the command.

* lldb/lldb_webkit.py:
(btjs):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202604 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/lldb/lldb_webkit.py

index f93f63d..db113d2 100644 (file)
@@ -1,3 +1,16 @@
+2016-06-28  Michael Saboff  <msaboff@apple.com>
+
+        btjs no longer accepts optional frame count argument
+        https://bugs.webkit.org/show_bug.cgi?id=159235
+
+        Reviewed by Saam Barati.
+
+        Fix the detection of optional backtrace-depth parameter to use the length
+        of the command.
+
+        * lldb/lldb_webkit.py:
+        (btjs):
+
 2016-06-28  Jon Lee  <jonlee@apple.com>
 
         Update animometer.plan
index e5712a8..77df432 100644 (file)
@@ -121,7 +121,7 @@ def btjs(debugger, command, result, internal_dict):
 
     backtraceDepth = thread.GetNumFrames()
 
-    if len(command) == 1:
+    if len(command) > 0:
         try:
             backtraceDepth = int(command)
         except ValueError: