[libcxx-dev] Contributing debug visualizers for libc++

Nico Weber via libcxx-dev libcxx-dev at lists.llvm.org
Wed May 8 11:33:38 PDT 2019


Sorry about the additional email, but the file has moved around. The new
location is at
https://cs.chromium.org/chromium/src/build/config/c%2B%2B/libc%2B%2B.natvis?q=file:libc...natvis&sq=package:chromium&g=0&l=1

On Tue, May 7, 2019 at 2:48 PM Nico Weber <thakis at chromium.org> wrote:

> Thanks for the quick response! No rush, next week sounds great :)
>
> On Tue, May 7, 2019 at 2:46 PM Marshall Clow <mclow.lists at gmail.com>
> wrote:
>
>>
>>
>> On Tue, May 7, 2019 at 12:08 PM Nico Weber via libcxx-dev <
>> libcxx-dev at lists.llvm.org> wrote:
>>
>>> 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 --
>>
>> I'm going to apologize in advance for a slow response, since I (and
>> Louis) are at C++Now this week.
>> This sounds really interesting, and I'll take a look at this early next
>> week.
>>
>> -- Marshall
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/libcxx-dev/attachments/20190508/d02379e7/attachment.html>


More information about the libcxx-dev mailing list