[all-commits] [llvm/llvm-project] 6abf36: [lldb][test] Fix D lang mangling test on Windows (...

David Spickett via All-commits all-commits at lists.llvm.org
Mon Jun 3 02:19:02 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6abf361953e9c5d019a72fd83765498d269eb080
      https://github.com/llvm/llvm-project/commit/6abf361953e9c5d019a72fd83765498d269eb080
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2024-06-03 (Mon, 03 Jun 2024)

  Changed paths:
    M lldb/test/API/lang/c/non-mangled/TestCNonMangled.py

  Log Message:
  -----------
  [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.



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