| Issue |
178067
|
| Summary |
How to register for events in lldb-21
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
d-millar
|
Prior to lldb-21, I was able to register for events for the target process prior to launch via the python API using `proc.GetBroadcaster().AddListener(listener, ALL_EVENTS)` where `proc = lldb.SBDebugger.FindDebuggerWithID(1).GetTargetAtIndex(0).GetProcess()`. With the advent of 21, `GetProcess()` now returns a pseudo-process with pid==0. The events returned to the listener include only module load events, and the `lldb.SBProcess.GetProcessFromEvent` from these events appears to be invalid.
I would re-register my listener when the process stops, but, given the above, I have no real event to trigger on. Is there a new way to register for these events? Also, I'd be very interested in the motivation behind the change.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs