Commit 97aa01b
authored
[lldb] Call Target::ClearAllLoadedSections earlier (llvm#138892)
Minidump files contain explicit information about load addresses of
modules, so it can load them itself. This works on other platforms, but
fails on darwin because DynamicLoaderDarwin nukes the loaded module list
on initialization (which happens after the core file plugin has done its
work).
This used to work until llvm#109477, which enabled the dynamic loader
plugins for minidump files in order to get them to provide access to
TLS.
Clearing the load list makes sense, but I think we could do it earlier
in the process, so that both Process and DynamicLoader plugins get a
chance to load modules. This patch does that by calling the function
early in the launch/attach/load core flows.
This fixes TestDynamicValue.py:test_from_core_file on darwin.1 parent 6b97a98 commit 97aa01b
File tree
3 files changed
+4
-2
lines changed- lldb
- source
- Plugins/DynamicLoader/MacOSX-DYLD
- Target
- test/API/lang/cpp/dynamic-value
3 files changed
+4
-2
lines changedLines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
872 | 872 | | |
873 | 873 | | |
874 | 874 | | |
875 | | - | |
876 | 875 | | |
877 | 876 | | |
878 | 877 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2763 | 2763 | | |
2764 | 2764 | | |
2765 | 2765 | | |
| 2766 | + | |
2766 | 2767 | | |
2767 | 2768 | | |
2768 | 2769 | | |
| |||
2799 | 2800 | | |
2800 | 2801 | | |
2801 | 2802 | | |
| 2803 | + | |
2802 | 2804 | | |
2803 | 2805 | | |
2804 | 2806 | | |
| |||
3094 | 3096 | | |
3095 | 3097 | | |
3096 | 3098 | | |
| 3099 | + | |
| 3100 | + | |
3097 | 3101 | | |
3098 | 3102 | | |
3099 | 3103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | 285 | | |
287 | 286 | | |
288 | 287 | | |
| |||
0 commit comments