subclass_lldb 0.0.6 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/setup +14 -14
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9061dee8d0a2dd085cb4d386832f26280b2f2f74014a16aa2b09a05956b2d3e4
|
4
|
+
data.tar.gz: fc3c11b1244bef76ff9c48ba621c5e4906c9be02fb45c02b3f943ffad7b209c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de4aa3f75090d8350d2ef821783389cd726490c57b84a91d2a35411569e01297c47c8c7c3387b085875d480037132e5cbd0430b151e3738d5619ca415679823
|
7
|
+
data.tar.gz: 23e612d8e5b98153b108536870cc34c9d775d1248b04c3cf02825d9c426ee04760c7f5674871d79a4da8b0e410ec89ece9d762f53d54170fe6668426f0da4d54
|
data/lib/setup
CHANGED
@@ -5,8 +5,8 @@ def help ():#line:8
|
|
5
5
|
print ("Usage:")#line:9
|
6
6
|
print (" subclass superclass_name eg:subclass NSObject")#line:10
|
7
7
|
pass #line:11
|
8
|
-
def process (
|
9
|
-
|
8
|
+
def process (O0OO0O0O0OOO0OOO0 ):#line:13
|
9
|
+
OO0000O00O0OO000O =r'''
|
10
10
|
@import <dlfcn.h>;
|
11
11
|
@import <objc/runtime.h>;
|
12
12
|
@import Foundation;
|
@@ -22,7 +22,7 @@ def process (O000O0O0O0OO00O00 ):#line:13
|
|
22
22
|
NSInteger backLevel = 0;//继承层级
|
23
23
|
NSMutableDictionary * visited_class = [[NSMutableDictionary alloc]init];
|
24
24
|
NSMutableArray * class_stack = [[NSMutableArray alloc] init];
|
25
|
-
[class_stack addObject:@"'''+
|
25
|
+
[class_stack addObject:@"'''+O0OO0O0O0OOO0OOO0 +'''"];
|
26
26
|
BOOL isPrint = NO;
|
27
27
|
printf("\\n");
|
28
28
|
while (true) {
|
@@ -84,16 +84,16 @@ def process (O000O0O0O0OO00O00 ):#line:13
|
|
84
84
|
}
|
85
85
|
}
|
86
86
|
'''#line:91
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
print (
|
93
|
-
def helloworld (
|
94
|
-
if
|
87
|
+
O00000OO0000O00O0 =lldb .debugger .GetCommandInterpreter ()#line:93
|
88
|
+
O0000O0O000000OOO =lldb .SBCommandReturnObject ()#line:94
|
89
|
+
O00000OO0000O00O0 .HandleCommand ('expression -lobjc -O -- '+OO0000O00O0OO000O ,O0000O0O000000OOO )#line:96
|
90
|
+
O0OOOO0O0OO0O0OOO =O0000O0O000000OOO .GetOutput ()#line:97
|
91
|
+
O0OOO00OOOOOO0O0O =re .search ('error',O0OOOO0O0OO0O0OOO )#line:98
|
92
|
+
print (O0000O0O000000OOO .GetError ())#line:99
|
93
|
+
def helloworld (OO0O00O0O0O00OOOO ,OO000O00000O0OO0O ,OOO000OO00O0000OO ,OO0000O00OO0OO0OO ):#line:102
|
94
|
+
if OO000O00000O0OO0O ==None or OO000O00000O0OO0O =='-h':#line:104
|
95
95
|
help ()#line:105
|
96
96
|
else :#line:106
|
97
|
-
process (
|
98
|
-
def
|
99
|
-
|
97
|
+
process (OO000O00000O0OO0O )#line:107
|
98
|
+
def __OOOO0O0OO00O00O00 (O000O00O0O0OOOO0O ,OO0OO00OOO00O0OOO ):#line:110
|
99
|
+
O000O00O0O0OOOO0O .HandleCommand ("command script add -f subclass_lldb.helloworld subclass")#line:111
|