subclass_lldb 0.0.2 → 0.0.5
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 +15 -15
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 49821ae864f36e5147ef890b8d651aff9ccf4063fc3220b74532d5e67644a00f
|
4
|
+
data.tar.gz: 409e87aecf75da0dafcde76279de708280171fe051083ce271952b086d03f85f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b92a0c3e3ef7bff8c8f2842e4e1818d56c4409953fb251dbb84eae14ab72368d37afcb368880abef713cfab0c88909ab6134b11d806ba76c7ab0ef9f39238f5
|
7
|
+
data.tar.gz: 68c094945c68e8b0ba3967ebf623611a1eccbf6497f7afc2243e07a8198e719b6b171be14a09dd02e6ec94ee97282ea6ec08dde2d768239d771005c37eb23157
|
data/lib/setup
CHANGED
@@ -3,10 +3,10 @@ import lldb #line:5
|
|
3
3
|
import re #line:6
|
4
4
|
def help ():#line:8
|
5
5
|
print ("Usage:")#line:9
|
6
|
-
print ("
|
6
|
+
print (" subclass superclass_name eg:subclass NSObject")#line:10
|
7
7
|
pass #line:11
|
8
|
-
def process (
|
9
|
-
|
8
|
+
def process (OO0OOO00O00000OOO ):#line:13
|
9
|
+
O0OO0OOO00O00000O =r'''
|
10
10
|
@import <dlfcn.h>;
|
11
11
|
@import <objc/runtime.h>;
|
12
12
|
@import Foundation;
|
@@ -21,7 +21,7 @@ def process (OO000O00OOO000O00 ):#line:13
|
|
21
21
|
NSInteger level = 0;//继承层级
|
22
22
|
NSMutableDictionary * visited_class = [[NSMutableDictionary alloc]init];
|
23
23
|
NSMutableArray * class_stack = [[NSMutableArray alloc] init];
|
24
|
-
[class_stack addObject:@"'''+
|
24
|
+
[class_stack addObject:@"'''+OO0OOO00O00000OOO +'''"];
|
25
25
|
BOOL isPrint = NO;
|
26
26
|
printf("\\n");
|
27
27
|
while (true) {
|
@@ -72,16 +72,16 @@ def process (OO000O00OOO000O00 ):#line:13
|
|
72
72
|
}
|
73
73
|
}
|
74
74
|
'''#line:79
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
print (
|
81
|
-
def helloworld (
|
82
|
-
if
|
75
|
+
O0O0O0O0O00OOOO00 =lldb .debugger .GetCommandInterpreter ()#line:81
|
76
|
+
O0O0O0OOOO0OO0OOO =lldb .SBCommandReturnObject ()#line:82
|
77
|
+
O0O0O0O0O00OOOO00 .HandleCommand ('expression -lobjc -O -- '+O0OO0OOO00O00000O ,O0O0O0OOOO0OO0OOO )#line:84
|
78
|
+
O0OOO00O0OO0O0000 =O0O0O0OOOO0OO0OOO .GetOutput ()#line:85
|
79
|
+
OOOOO000OO00OO000 =re .search ('error',O0OOO00O0OO0O0000 )#line:86
|
80
|
+
print (O0O0O0OOOO0OO0OOO .GetError ())#line:87
|
81
|
+
def helloworld (O00OO0O000O0000O0 ,OO0OOO000000O00OO ,OO0OOO0000OO000OO ,O0OOOO00O00O0O0O0 ):#line:90
|
82
|
+
if OO0OOO000000O00OO ==None or OO0OOO000000O00OO =='-h':#line:92
|
83
83
|
help ()#line:93
|
84
84
|
else :#line:94
|
85
|
-
process (
|
86
|
-
def
|
87
|
-
|
85
|
+
process (OO0OOO000000O00OO )#line:95
|
86
|
+
def __O000OO00000OOO0OO (OO000OOO0O00O0OO0 ,OOOOO00000OOO00O0 ):#line:98
|
87
|
+
OO000OOO0O00O0OO0 .HandleCommand ("command script add -f subclass_lldb.helloworld subclass")#line:99
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: subclass_lldb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ningyuan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: An plugin of LLDB.
|
14
14
|
email:
|