Commit dee8f47
committed
[Dexter] Normalise the "tools directory" into a list of tools
AFAIUI the original rationale behind having tools abstracted behind the
directory that they live is was to ease development -- create a new tool by
creating a new directory. However it also puts in awkward abstractions
whereby you can't know what's going to be run without first loading a
module. There's also effectively no authoritative list of tools, because
you can load one from anywhere. And the tool names are affected by pythons
normalisation of module names!
Instead: move the tools into named files in the tools directory, have a
list of them, and create the tool object from that list when needed. No
module wrangling requried at all, and there can be certainty about what's
going on. We can also delete some name-normalisation that happens now that
it's not subject to module-loading-normalisation.1 parent 6de5d1e commit dee8f47
File tree
15 files changed
+36
-92
lines changed- cross-project-tests/debuginfo-tests/dexter/dex
- debugger
- tools
- help
- list_debuggers
- no_tool_
- run_debugger_internal_
- test
- view
15 files changed
+36
-92
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
Lines changed: 4 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 57 | | |
79 | 58 | | |
80 | 59 | | |
| |||
118 | 97 | | |
119 | 98 | | |
120 | 99 | | |
| 100 | + | |
121 | 101 | | |
122 | 102 | | |
123 | 103 | | |
| |||
127 | 107 | | |
128 | 108 | | |
129 | 109 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 110 | | |
142 | 111 | | |
143 | 112 | | |
| |||
190 | 159 | | |
191 | 160 | | |
192 | 161 | | |
| 162 | + | |
193 | 163 | | |
194 | 164 | | |
195 | 165 | | |
| |||
200 | 170 | | |
201 | 171 | | |
202 | 172 | | |
203 | | - | |
204 | | - | |
| 173 | + | |
| 174 | + | |
205 | 175 | | |
206 | 176 | | |
207 | 177 | | |
| |||
Lines changed: 27 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | 39 | | |
41 | | - | |
42 | | - | |
| 40 | + | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
50 | 48 | | |
51 | 49 | | |
52 | 50 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 51 | + | |
| 52 | + | |
Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 0 additions & 8 deletions
This file was deleted.
0 commit comments