[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


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

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.)


-------------- 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