[Lldb-commits] [lldb] [lldb][DynamicLoader] Fix lldb unable to stop at _dl_debug_state if user set it before the process launched. (PR #88792)

Zequan Wu via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 16 11:16:29 PDT 2024


ZequanWu wrote:

> > > why not just call ModulesDidLoad and delegate this (and possibly other binary-just-loaded) behaviors to it?
> > 
> > 
> > That's what I did first, but it breaks the test `TestModuleLoadedNotifys.ModuleLoadedNotifysTestCase.test_launch_notifications` because of extra broadcaster event. So, I moved out the part just updating breakpoints.
> 
> The point of the test is to ensure you don't get a hundred notifications, one for each module. Having one notification for ld.so, and 99 for the rest of the modules is ok. It should be fine to just update the test to match new reality.

Updated to use `Target::ModulesDisLoad` and the test.

https://github.com/llvm/llvm-project/pull/88792


More information about the lldb-commits mailing list