History log of /llvm-project/lldb/test/API/lang/c/non-mangled/TestCNonMangled.py (Results 1 – 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: llvmorg-18.1.8, llvmorg-18.1.7
# 6abf3619 03-Jun-2024 David Spickett <david.spickett@linaro.org>

[lldb][test] Fix D lang mangling test on Windows (#94196)

On Windows the function does not have a symbol associated with it:
Function: id = {0x000001c9}, name = "_Dfunction", range =
[0x0000000140

[lldb][test] Fix D lang mangling test on Windows (#94196)

On Windows the function does not have a symbol associated with it:
Function: id = {0x000001c9}, name = "_Dfunction", range =
[0x0000000140001000-0x0000000140001004)
LineEntry: <...>

Whereas it does on Linux:
Function: id = {0x00000023}, name = "_Dfunction", range =
[0x0000000000000734-0x0000000000000738)
LineEntry: <...>
Symbol: id = {0x00000058}, range =
[0x0000000000000734-0x0000000000000738), name="_Dfunction"

This means that frame.symbol is not valid on Windows.

However, frame.function is valid and it also has a "mangled" attribute.

So I've updated the test to check the symbol if we've got it, and the
function always.

In both cases we check that mangled is empty (meaning it has not been
treated as mangled) and that the display name matches the original
symbol name.

show more ...


# 770b6c79 03-Jun-2024 David Spickett <david.spickett@linaro.org>

[lldb][test] Add missing import in D lang mangling test


# 09c06079 03-Jun-2024 David Spickett <david.spickett@linaro.org>

[lldb][test] Skip D lang mangling test on Windows

While the fix is reviewed.


# 5a02a9a2 31-May-2024 Dave Lee <davelee.com@gmail.com>

[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 [Dl

[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.

show more ...