Skip to content

Commit

Permalink
Rename chisel's fblldb to fbchisellldb
Browse files Browse the repository at this point in the history
Summary:
To avoid conflicting with another fblldb module that is now distributed with lldb I'm renaming this to fbioslldb. The name itself will also be more clear about the module's purpose.

Not removing fblldb.py yet because there are other systems depending on this file that will need to be updated once this has landed. Once I update those systems I'll remove fblldb.py.

Reviewed By: kolinkrewinkel

Differential Revision: D20768692

fbshipit-source-id: 531dd0da882112cbb93f7ea182b5f6f6c45b926f
  • Loading branch information
aadsm authored and facebook-github-bot committed Apr 28, 2020
1 parent c3c793f commit deb751e
Show file tree
Hide file tree
Showing 25 changed files with 252 additions and 251 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ Then add the following line to your `~/.lldbinit` file.
```Python
# ~/.lldbinit
...
command script import /usr/local/opt/chisel/libexec/fblldb.py
command script import /usr/local/opt/chisel/libexec/fbchisellldb.py
```

Alternatively, download chisel and add the following line to your _~/.lldbinit_ file.

```Python
# ~/.lldbinit
...
command script import /path/to/fblldb.py
command script import /path/to/fbchisellldb.py

```

Expand Down Expand Up @@ -97,7 +97,7 @@ You can add local, custom commands. Here's a contrived example.
# Example file with custom commands, located at /magical/commands/example.py

import lldb
import fblldbbase as fb
import fbchisellldbbase as fb

def lldbcommands():
return [ PrintKeyWindowLevel() ]
Expand All @@ -115,13 +115,13 @@ class PrintKeyWindowLevel(fb.FBCommand):
lldb.debugger.HandleCommand('p (CGFloat)[(id)[(id)[UIApplication sharedApplication] keyWindow] windowLevel]')
```

Then all that's left is to source the commands in lldbinit. `Chisel` has a python function just for this, _loadCommandsInDirectory_ in the _fblldb.py_ module.
Then all that's left is to source the commands in lldbinit. `Chisel` has a python function just for this, _loadCommandsInDirectory_ in the _fbobjclldb.py_ module.

```Python
# ~/.lldbinit
...
command script import /path/to/fblldb.py
script fblldb.loadCommandsInDirectory('/magical/commands/')
command script import /path/to/fbobjclldb.py
script fbobjclldb.loadCommandsInDirectory('/magical/commands/')

```

Expand Down
4 changes: 2 additions & 2 deletions commands/FBAccessibilityCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
import os
import re

import fblldbbase as fb
import fblldbobjecthelpers as objHelpers
import fbchisellldbbase as fb
import fbchisellldbobjecthelpers as objHelpers


# This is the key corresponding to accessibility label in
Expand Down
4 changes: 2 additions & 2 deletions commands/FBAutoLayoutCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# LICENSE file in the root directory of this source tree.


import fblldbbase as fb
import fblldbviewhelpers as viewHelpers
import fbchisellldbbase as fb
import fbchisellldbviewhelpers as viewHelpers
import lldb


Expand Down
4 changes: 2 additions & 2 deletions commands/FBClassDump.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import string

import fblldbbase as fb
import fblldbobjcruntimehelpers as runtimeHelpers
import fbchisellldbbase as fb
import fbchisellldbobjcruntimehelpers as runtimeHelpers


def lldbcommands():
Expand Down
4 changes: 2 additions & 2 deletions commands/FBComponentCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import fblldbbase as fb
import fblldbviewhelpers as viewHelpers
import fbchisellldbbase as fb
import fbchisellldbviewhelpers as viewHelpers


def lldbcommands():
Expand Down
4 changes: 2 additions & 2 deletions commands/FBCopyCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

import lldb
import errno
import fblldbbase as fb
import fblldbobjecthelpers as objectHelpers
import fbchisellldbbase as fb
import fbchisellldbobjecthelpers as objectHelpers


def lldbcommands():
Expand Down
4 changes: 2 additions & 2 deletions commands/FBDebugCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import re
import sys

import fblldbbase as fb
import fblldbobjcruntimehelpers as objc
import fbchisellldbbase as fb
import fbchisellldbobjcruntimehelpers as objc
import lldb


Expand Down
2 changes: 1 addition & 1 deletion commands/FBDelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from threading import Timer

import fblldbbase as fb
import fbchisellldbbase as fb
import lldb


Expand Down
8 changes: 4 additions & 4 deletions commands/FBDisplayCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import fblldbbase as fb
import fblldbobjcruntimehelpers as runtimeHelpers
import fblldbviewcontrollerhelpers as viewControllerHelpers
import fblldbviewhelpers as viewHelpers
import fbchisellldbbase as fb
import fbchisellldbobjcruntimehelpers as runtimeHelpers
import fbchisellldbviewcontrollerhelpers as viewControllerHelpers
import fbchisellldbviewhelpers as viewHelpers
import lldb


Expand Down
6 changes: 3 additions & 3 deletions commands/FBFindCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import os
import re

import fblldbbase as fb
import fblldbobjcruntimehelpers as objc
import fblldbviewcontrollerhelpers as vcHelpers
import fbchisellldbbase as fb
import fbchisellldbobjcruntimehelpers as objc
import fbchisellldbviewcontrollerhelpers as vcHelpers
import lldb


Expand Down
6 changes: 3 additions & 3 deletions commands/FBFlickerCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import os
import sys

import fblldbbase as fb
import fblldbobjcruntimehelpers as runtimeHelpers
import fblldbviewhelpers as viewHelpers
import fbchisellldbbase as fb
import fbchisellldbobjcruntimehelpers as runtimeHelpers
import fbchisellldbviewhelpers as viewHelpers
import lldb


Expand Down
4 changes: 2 additions & 2 deletions commands/FBImportCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import fblldbbase as fb
import fbchisellldbbase as fb
import lldb


Expand All @@ -27,4 +27,4 @@ def run(self, arguments, options):
.GetSelectedThread()
.GetSelectedFrame()
)
fb.importModule(frame, "UIKit")
fb.importModule(frame, "UIKit")
2 changes: 1 addition & 1 deletion commands/FBInvocationCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import re

import fblldbbase as fb
import fbchisellldbbase as fb
import lldb


Expand Down
8 changes: 4 additions & 4 deletions commands/FBPrintCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
import re
import subprocess

import fblldbbase as fb
import fblldbobjcruntimehelpers as runtimeHelpers
import fblldbviewcontrollerhelpers as vcHelpers
import fblldbviewhelpers as viewHelpers
import fbchisellldbbase as fb
import fbchisellldbobjcruntimehelpers as runtimeHelpers
import fbchisellldbviewcontrollerhelpers as vcHelpers
import fbchisellldbviewhelpers as viewHelpers
import lldb


Expand Down
4 changes: 2 additions & 2 deletions commands/FBTextInputCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

import fblldbbase as fb
import fblldbviewhelpers as viewHelpers
import fbchisellldbbase as fb
import fbchisellldbviewhelpers as viewHelpers


ACCESSIBILITY_ID = 0
Expand Down
4 changes: 2 additions & 2 deletions commands/FBVisualizationCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import os
import time

import fblldbbase as fb
import fblldbobjecthelpers as objectHelpers
import fbchisellldbbase as fb
import fbchisellldbobjecthelpers as objectHelpers
import lldb


Expand Down
2 changes: 1 addition & 1 deletion commands/FBXCTestCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import re

import fblldbbase as fb
import fbchisellldbbase as fb
import lldb


Expand Down
Loading

0 comments on commit deb751e

Please sign in to comment.