[all-commits] [llvm/llvm-project] 6c17cc: [lldb] Make BreakpointResolver hold weak_ptr inste...

Tatyana Krasnukha via All-commits all-commits at lists.llvm.org
Wed Mar 4 05:57:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6c17cc531f9f4ee94f2298200fc4813c02999d78
      https://github.com/llvm/llvm-project/commit/6c17cc531f9f4ee94f2298200fc4813c02999d78
  Author: Tatyana Krasnukha <tatyana at synopsys.com>
  Date:   2020-03-04 (Wed, 04 Mar 2020)

  Changed paths:
    M lldb/include/lldb/Breakpoint/BreakpointResolver.h
    M lldb/include/lldb/Breakpoint/BreakpointResolverAddress.h
    M lldb/include/lldb/Breakpoint/BreakpointResolverFileLine.h
    M lldb/include/lldb/Breakpoint/BreakpointResolverFileRegex.h
    M lldb/include/lldb/Breakpoint/BreakpointResolverName.h
    M lldb/include/lldb/Breakpoint/BreakpointResolverScripted.h
    M lldb/include/lldb/Target/LanguageRuntime.h
    M lldb/source/Breakpoint/Breakpoint.cpp
    M lldb/source/Breakpoint/BreakpointResolver.cpp
    M lldb/source/Breakpoint/BreakpointResolverAddress.cpp
    M lldb/source/Breakpoint/BreakpointResolverFileLine.cpp
    M lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp
    M lldb/source/Breakpoint/BreakpointResolverName.cpp
    M lldb/source/Breakpoint/BreakpointResolverScripted.cpp
    M lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
    M lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.h
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.h
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
    M lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h
    M lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
    M lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.h
    M lldb/source/Target/LanguageRuntime.cpp
    M lldb/source/Target/Target.cpp

  Log Message:
  -----------
  [lldb] Make BreakpointResolver hold weak_ptr instead of raw pointer to breakpoint

This prevents calling Breakpoint::shared_from_this of an object that is not owned by any shared_ptr.

Differential Revision: https://reviews.llvm.org/D74557


  Commit: b1324e74da2661e799b9fad037948e70d002b771
      https://github.com/llvm/llvm-project/commit/b1324e74da2661e799b9fad037948e70d002b771
  Author: Tatyana Krasnukha <tatyana at synopsys.com>
  Date:   2020-03-04 (Wed, 04 Mar 2020)

  Changed paths:
    M lldb/source/Breakpoint/BreakpointResolverName.cpp

  Log Message:
  -----------
  [lldb][NFC] Move local variables near to their usage


Compare: https://github.com/llvm/llvm-project/compare/587feec07e3e...b1324e74da26


More information about the All-commits mailing list