[libcxx-dev] Contributing debug visualizers for libc++
Nico Weber via libcxx-dev
libcxx-dev at lists.llvm.org
Tue May 7 11:07:46 PDT 2019
Hi,
Chromium now uses a statically linked libc++ on most platforms. One piece
of feedback we got from devs is that they don't want the switch to libc++
to impede their debugging experience, so we wrote a natvis file that
teaches Microsoft's debuggers how to display libc++ types. We're also using
https://github.com/koutheir/libcxx-pretty-printers to achieve the same for
gdb.
Other projects are probably also interested in having good libc++ support
in their debuggers. Would there be interest to have these debug visualizers
right in the libc++ repository, either somewhere in utils/, or in a new
misc/ directory, or what have you?
We'd gladly contribute the natvis file [1] under LLVM's license.
(libcxx-pretty-printers is a separate project not done by us. If this
thread goes somewhere, I'm planning to ask the upstream maintainers if
they'd be open to relicensing and contributing the gdb pretty printers to
upstream libcxx as well, but they might not agree. If they don't, we
(chromium) might want to write libc++ pretty printers for gdb from scratch
and contribute those, but not sure.)
Nico
1:
https://cs.chromium.org/chromium/src/tools/win/DebugVisualizers/libc%2B%2B.natvis?q=%5C.natvis&sq=package:chromium&dr=C&l=144
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20190507/743a3e13/attachment.html>
More information about the libcxx-dev
mailing list