[PATCH] D153536: [Clang] Implement P2169 A nice placeholder with no name
    Hubert Tong via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Sat Jul  8 19:52:45 PDT 2023
    
    
  
hubert.reinterpretcast added a comment.
In D153536#4479275 <https://reviews.llvm.org/D153536#4479275>, @hubert.reinterpretcast wrote:
> It seems the class member case trips up debuggers.
If `llvm-dwarfdump` is to be believed, it looks like a compiler bug (two members reported at the same offset).
  0x000000a3:       DW_TAG_member [4]   (0x0000009d)
                      DW_AT_name [DW_FORM_string] ("_")
                      DW_AT_type [DW_FORM_ref4]   (cu + 0x00de => {0x000000de} "int")
                      DW_AT_decl_file [DW_FORM_data1]     ("/terrannew/hstong/.Lpcoral03/llvmbld/placeholderDbg.cc")
                      DW_AT_decl_line [DW_FORM_data1]     (2)
                      DW_AT_data_member_location [DW_FORM_data1]  (0x00)
  
  0x000000ad:       DW_TAG_member [4]   (0x0000009d)
                      DW_AT_name [DW_FORM_string] ("_")
                      DW_AT_type [DW_FORM_ref4]   (cu + 0x00de => {0x000000de} "int")
                      DW_AT_decl_file [DW_FORM_data1]     ("/terrannew/hstong/.Lpcoral03/llvmbld/placeholderDbg.cc")
                      DW_AT_decl_line [DW_FORM_data1]     (2)
                      DW_AT_data_member_location [DW_FORM_data1]  (0x00)
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D153536/new/
https://reviews.llvm.org/D153536
    
    
More information about the cfe-commits
mailing list