[Lldb-commits] [lldb] Fix lldb crash while handling concurrent vfork() (PR #81564)

Greg Clayton via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 13 12:53:47 PST 2024


================
@@ -301,7 +301,8 @@ class ProcessGDBRemote : public Process,
   using FlashRange = FlashRangeVector::Entry;
   FlashRangeVector m_erased_flash_ranges;
 
-  bool m_vfork_in_progress;
+  // Number of vfork in process.
+  int m_vfork_in_progress;
----------------
clayborg wrote:

Do we really want a number that can go below zero? Doesn't make sense. I would store this as a `uint32_t` and never let it get decremented if it is zero.

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


More information about the lldb-commits mailing list