[Lldb-commits] [lldb] [lldb] Add support for unique target ids (PR #160736)

John Harrison via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 30 12:30:37 PDT 2025


================
@@ -183,6 +185,7 @@ Target::Target(Debugger &debugger, const ArchSpec &target_arch,
       m_source_manager_up(), m_stop_hooks(), m_stop_hook_next_id(0),
       m_latest_stop_hook_id(0), m_valid(true), m_suppress_stop_hooks(false),
       m_is_dummy_target(is_dummy_target),
+      m_target_unique_id(g_target_unique_id++),
----------------
ashgti wrote:

This is not protected by any lock, so this could be an issue if two targets are created quickly.

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


More information about the lldb-commits mailing list