[PING 2][PATCH v3] Add pretty printers for the NPTL lock types

Martin Galvan martin.galvan@tallertechnologies.com
Tue Nov 17 17:26:00 GMT 2015


On Tue, Nov 17, 2015 at 12:55 PM, Florian Weimer <fweimer@redhat.com> wrote:
> Is there a test for this somewhere?  Can it be put into glibc?

If you mean automated unit tests, then no, there aren't any. I think
including them in glibc would be quite a hassle, since they'd need to
interact with gdb as well.

When developing these printers I based my work on the ones for
libstdc++. I think those don't come with unit tests either.

> I'm worried that these helpers break the debugging experience at some
> point, and we would like to catch that early.

Notice these printers won't necessarily have to be enabled by default.
If there was a problem with the printers, the user can simply keep the
default printing behavior. libstdc++ does this as well: I had to add a
bit of code to my .gdbinit so that those printers will always load
them at startup.

This is merely a tool to make the user's life easier. It's not by any
means a requirement for using glibc.



More information about the Libc-alpha mailing list