This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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

They do.  They work by invoking gdb and checking the expected output.

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

FWIW it is a valid concern, this has happened with the libstdc++ printers.

Martin> libstdc++ does this as well: I had to add a
Martin> bit of code to my .gdbinit so that those printers will always load
Martin> them at startup.

With a correct setup (typically done by the distros), you shouldn't need
this.  That's what all the hook business is for.  (I didn't read your
patch, sorry; but you should do this if you haven't already.)

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]