Details
Diff Detail
- Repository
- rLLDB LLDB
Event Timeline
A testcase that triggers this situation would be nice, too.
source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp | ||
---|---|---|
558 | I recently started writing these early-exit returns as return {}; |
I recently started writing these early-exit returns as return {};
Good suggestion!
A testcase that triggers this situation would be nice, too.
I think this is too tricky. If I understand correctly, an example of an unsafe-to-call thread state is when we're parked inside a __select system call, and if we do invoke other code on that thread, sometimes, some kernel data structures can get out of sync from the thread state and the __select system call can sometimes return wrong results. Sounds quite hard to write a reliable test case for this, since the exact behavior also depends on OS version. I hope you'll forgive me for not providing this test :)
I recently started writing these early-exit returns as return {};