[PATCH] D54187: Add debuginfo-tests that use cdb on Windows

Reid Kleckner via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 6 15:33:45 PST 2018


rnk created this revision.
rnk added reviewers: aprantl, zturner.
Herald added subscribers: JDevlieghere, mgorny.

This is an initial prototype of how we can run debugger integration tests on
Windows. cdb and windbg share a command language and debugger engine. Visual
Studio has its own, but we should at least be able to use cdb as the basis for
optimized debug info integration tests.

There's a lot of work to do here still. For example:

- Make fewer assumptions about the SDK location
- Don't assume x64 (important, I need x86 testing)
- More environment isolation, have lit setup vcvars instead of passing LIB and INCLUDE down.
- Write a .py file to replace the grep+sed RUN line

But, this seemed like a good enough concept to commit as is, since it's useful
to me already.


https://reviews.llvm.org/D54187

Files:
  debuginfo-tests/CMakeLists.txt
  debuginfo-tests/lit.cfg.py
  debuginfo-tests/lit.site.cfg.py.in
  debuginfo-tests/win_cdb/README.txt
  debuginfo-tests/win_cdb/hello.c
  debuginfo-tests/win_cdb/lit.local.cfg.py
  debuginfo-tests/win_cdb/realigned-frame.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54187.172871.patch
Type: text/x-patch
Size: 5201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181106/c149d0c3/attachment.bin>


More information about the cfe-commits mailing list