[all-commits] [llvm/llvm-project] 9f6791: [lldb-dap][test] Only check compile units from sta...

Jordan Rupprecht via All-commits all-commits at lists.llvm.org
Wed Sep 16 09:41:14 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f6791b42d91f72592133e470a4408ae49026ab7
      https://github.com/llvm/llvm-project/commit/9f6791b42d91f72592133e470a4408ae49026ab7
  Author: Jordan Rupprecht <rupprecht at google.com>
  Date:   2026-09-16 (Wed, 16 Sep 2026)

  Changed paths:
    M lldb/test/API/tools/lldb-dap/stackTrace/TestDAP_stackTrace.py

  Log Message:
  -----------
  [lldb-dap][test] Only check compile units from stack frames for main.c (#223450)

The `test_stack_frame_compile_unit_id` test case added in #222512 checks
that compileUnitId in a stack frame points to the source file. However,
it does so by checking there is only one unique compileUnitId in the
whole stack trace. This may not be true if start.S is included as a
compile unit.

Relax the check by only looking for stack frames that point to main.c.
Also check the other way, i.e. ensure the same compile unit id isn't
referenced by a stack frame that doesn't point to main.c. This way the
test retains its stated goal of making sure the compile unit id resolves
to its source file while also allowing start.S from a different compile
unit to be present.



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