Commit af2fa2e
committed
[lldb][Darwin] Change DynamicLoaderDarwin to default to new SPI
In Sep 2016 and newer Darwin releases, debugserver uses libdyld SPI
to gather information about the binaries loaded in a process. Before
Sep 2016, lldb would inspect the dyld internal data structures
directly itself to find this information.
DynamicLoaderDarwin::UseDYLDSPI currently defaults to the old
inspect-dyld-internal-structures method for binaries
(DynamicLoaderMacOSXDYLD). If it detects that the Process' host
OS version is new enough, it enables the newer libdyld SPI methods
in debugserver (DynamicLoaderMacOS).
This patch changes the default to use the new libdyld SPI interfaces.
If the Process has a HostOS and it is one of the four specific OSes
that existed in 2015 (Mac OS X, iOS, tvOS, watchOS) with an old
version number, then we will enable the old DynamicLoader plugin.
If this debug session is a corefile, we will always use the old
DynamicLoader plugin -- the libdyld SPI cannot run against a corefile,
lldb must read metadata or the dyld internal data structures in the
corefile to find the loaded binaries.1 parent 163ccfa commit af2fa2e
File tree
1 file changed
+26
-17
lines changed- lldb/source/Plugins/DynamicLoader/MacOSX-DYLD
1 file changed
+26
-17
lines changedLines changed: 26 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1208 | 1208 | | |
1209 | 1209 | | |
1210 | 1210 | | |
1211 | | - | |
| 1211 | + | |
1212 | 1212 | | |
1213 | 1213 | | |
1214 | 1214 | | |
1215 | 1215 | | |
1216 | 1216 | | |
1217 | 1217 | | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
1222 | 1221 | | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
1226 | 1225 | | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
| 1226 | + | |
| 1227 | + | |
| 1228 | + | |
1230 | 1229 | | |
1231 | | - | |
1232 | | - | |
1233 | | - | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
1234 | 1233 | | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
1238 | 1241 | | |
1239 | 1242 | | |
| 1243 | + | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
| 1247 | + | |
| 1248 | + | |
1240 | 1249 | | |
1241 | 1250 | | |
1242 | 1251 | | |
| |||
0 commit comments