[PATCH] D91648: [DebugInfo] Dexter tests for -debug-info-kind=constructor

Jeremy Morse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 17 11:16:41 PST 2020


jmorse created this revision.
jmorse added reviewers: akhuang, rnk, dblaikie, probinson.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
jmorse requested review of this revision.

While mucking about with the new -debug-info-kind=constructor build type, I figured it would be worth adding some integration tests to ensure that complete types can still be found by debuggers in the built programs.

There are two tests here: one simply checks the "foo" type can be examined in a different translation unit. The second checks that when we have partial type information for "foo" because of inlined elements from it (under DWARF at least) in main.o, debuggers can still find the complete type definition. This test is also run with -O2 -flto.

Each test examines fields in "bar" when stepped onto the output line, that we can step into the asString() method, and that the fields are still examinable there.

This test format requires multiple translation units; the empty "test.cfg" file reminds Dexter that it should be treating this as a whole directory test, not a single file test.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91648

Files:
  debuginfo-tests/dexter-tests/debug-info-kind-cons/lit.local.cfg
  debuginfo-tests/dexter-tests/debug-info-kind-cons/partial-type/construct.cpp
  debuginfo-tests/dexter-tests/debug-info-kind-cons/partial-type/main.cpp
  debuginfo-tests/dexter-tests/debug-info-kind-cons/partial-type/test.cfg
  debuginfo-tests/dexter-tests/debug-info-kind-cons/partial-type/test.dexter
  debuginfo-tests/dexter-tests/debug-info-kind-cons/partial-type/theclass.h
  debuginfo-tests/dexter-tests/debug-info-kind-cons/simple/construct.cpp
  debuginfo-tests/dexter-tests/debug-info-kind-cons/simple/main.cpp
  debuginfo-tests/dexter-tests/debug-info-kind-cons/simple/test.cfg
  debuginfo-tests/dexter-tests/debug-info-kind-cons/simple/test.dexter
  debuginfo-tests/dexter-tests/debug-info-kind-cons/simple/theclass.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91648.305810.patch
Type: text/x-patch
Size: 5792 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201117/bba77411/attachment.bin>


More information about the llvm-commits mailing list