This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Inform every language runtime of the modified modules
ClosedPublic

Authored by JDevlieghere on Jul 23 2020, 4:28 PM.

Details

Summary

When a process is notified that modules got loaded, currently only existing language runtimes are given a chance to deal with that. This means that if the runtime for a given language wasn't needed before it won't be informed of the module chance. This is wrong because the module change might be what triggers the need for a certain runtime. Instead, we should give the language runtime for every supported language a chance to deal with the modified modules.

Diff Detail

Event Timeline

JDevlieghere created this revision.Jul 23 2020, 4:28 PM

(Mea culpa, I thought the Swift recognizers would be as trivial to fix as the upstream ones)

This revision is now accepted and ready to land.Jul 24 2020, 10:50 AM
clayborg accepted this revision.Jul 24 2020, 11:39 AM

LGTM with a few nits that can be fixed if needed

lldb/source/Target/Process.cpp
5762–5764

remove braces?

5772–5774

remove braces now that this is just a single line

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 24 2020, 12:13 PM