[all-commits] [llvm/llvm-project] 5a02a9: [lldb] Improve identification of Dlang mangled nam...

Dave Lee via All-commits all-commits at lists.llvm.org
Fri May 31 11:20:45 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a02a9a2e67444494f086dfe1cd6f15ba2210bc0
      https://github.com/llvm/llvm-project/commit/5a02a9a2e67444494f086dfe1cd6f15ba2210bc0
  Author: Dave Lee <davelee.com at gmail.com>
  Date:   2024-05-31 (Fri, 31 May 2024)

  Changed paths:
    M lldb/source/Core/Mangled.cpp
    A lldb/test/API/lang/c/non-mangled/Makefile
    A lldb/test/API/lang/c/non-mangled/TestCNonMangled.py
    A lldb/test/API/lang/c/non-mangled/main.c

  Log Message:
  -----------
  [lldb] Improve identification of Dlang mangled names (#93881)

Reduce false positive identification of C names as Dlang mangled names. This happens 
when a C function uses the prefix `_D`.

The [Dlang ABI](https://dlang.org/spec/abi.html#name_mangling) shows that mangled names 
have a length immediately following the `_D` prefix. This change checks for a digit 
after the `_D` prefix, when identifying the mangling scheme of a symbol. This doesn't 
prevent false positives entirely, but does make it less likely.



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