[Lldb-commits] [PATCH] D131821: Add test that shows the problem with aed965d5

Emre Kultursay via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 12 17:40:34 PDT 2022


emrekultursay created this revision.
Herald added a project: All.
emrekultursay requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

The test is identical to API/lang/c/stepping/ except:

1. It uses C++ and thus needs demangling support
2. It uses dynamic library, and tries to step into a function that is defined in the library.

Test fails with:

    File "...llvm-project/lldb/test/API/lang/cpp/stepping/TestStepAndBreakpointsCpp.py", line 252, in test_and_python_api
      self.assertEqual(thread.GetFrameAtIndex(0).GetFunctionName(), "b(int)")
  AssertionError: 'main' != 'b(int)'

...because it fails to step into the `b(int)` method and hits the next
breakpoint inside the `main` method.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D131821

Files:
  lldb/test/API/lang/cpp/stepping/Makefile
  lldb/test/API/lang/cpp/stepping/TestStepAndBreakpointsCpp.py
  lldb/test/API/lang/cpp/stepping/helper.cpp
  lldb/test/API/lang/cpp/stepping/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131821.452338.patch
Type: text/x-patch
Size: 15231 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220813/0045625f/attachment.bin>


More information about the lldb-commits mailing list