[all-commits] [llvm/llvm-project] 699ce1: [lldb] Fix crash missing MSInheritanceAttr with DW...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Wed Oct 23 04:21:44 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 699ce16b6284377e0cd9969b9f95e7367632a622
      https://github.com/llvm/llvm-project/commit/699ce16b6284377e0cd9969b9f95e7367632a622
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2024-10-23 (Wed, 23 Oct 2024)

  Changed paths:
    M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
    A lldb/test/Shell/SymbolFile/DWARF/x86/member-pointers.cpp

  Log Message:
  -----------
  [lldb] Fix crash missing MSInheritanceAttr with DWARF on Windows (#112928)

Member pointers refer to data or function members of a `CXXRecordDecl` and
require a `MSInheritanceAttr` in order to be complete. Without that we
cannot calculate their size in memory. The attempt has been causing a crash
further down in the clang AST context. In order to implement the feature,
DWARF will need a new attribtue to convey the information. For the moment,
this patch teaches LLDB to handle to situation and avoid the crash.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list