[all-commits] [llvm/llvm-project] da4b8a: [lldb] Stop creating BreakpointEventData raw point...

Alex Langford via All-commits all-commits at lists.llvm.org
Thu Jan 18 14:26:57 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: da4b8ab7fd8e43c3456ed9881a4eb4ad9da320fa
      https://github.com/llvm/llvm-project/commit/da4b8ab7fd8e43c3456ed9881a4eb4ad9da320fa
  Author: Alex Langford <alangford at apple.com>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M lldb/include/lldb/Breakpoint/Breakpoint.h
    M lldb/source/Breakpoint/Breakpoint.cpp

  Log Message:
  -----------
  [lldb] Stop creating BreakpointEventData raw pointers (#78508)

The lifetime of these BreakpointEventData objects is difficult to reason
about. These BreakpointEventData pointers are created and passed along
to `Event` which takes the raw pointer and sticks them in a shared
pointer. Instead of manually managing the lifetime and memory, it would
be simpler to have them be shared pointers from the start.




More information about the All-commits mailing list