[all-commits] [llvm/llvm-project] 4eadb4: [lldb][NFC] Try to adapt Cortex-M API test for an ...

Jason Molenda via All-commits all-commits at lists.llvm.org
Wed Sep 10 17:15:29 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4eadb45f83cef00165055f8038f179ca5c3e88ef
      https://github.com/llvm/llvm-project/commit/4eadb45f83cef00165055f8038f179ca5c3e88ef
  Author: Jason Molenda <jmolenda at apple.com>
  Date:   2025-09-10 (Wed, 10 Sep 2025)

  Changed paths:
    M lldb/test/API/functionalities/unwind/cortex-m-exception/TestCortexMExceptionUnwind.py

  Log Message:
  -----------
  [lldb][NFC] Try to adapt Cortex-M API test for an Unbuntu bot

When I added support for the Cortex-M exception return unwinding,
I got CI test failures on the lldb-remote-linux-ubuntu bot.  The
triple from my test `binary.json`, "armv7m-apple", was not being
used for the Target, so the incorrect SysV / AAPCS ABI was being
selected, and that ABI plugin has default unwind plans that hardcode
the arm-code r11 frame pointer behavior.  This is a Cortex-M
core, and r7 should be used.  The Darwin Arm ABI plugin uses r7 for
both arm and thumb, and behaves correctly.

Try getting the triple from `binary.json` in the API test, creating
the target with that triple explicitly before loading the corefile.
This may help prevent however we were losing the "-apple-" part of
the triple.  We'll see what the CI bot looks like with this added.



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