[RFC v2] Pretty printers for NPTL lock types

Mike Frysinger vapier@gentoo.org
Fri Mar 13 17:46:00 GMT 2015


On 13 Mar 2015 11:27, Tom Tromey wrote:
> >>>>> "Martin" == Martin Galvan <martin.galvan@tallertechnologies.com> writes:
> 
> Martin>         if mutexType == PTHREAD_MUTEX_NORMAL:
> Martin>             self.output += "* Type: Normal\n"
> 
> Putting newlines into the output seems like it will make the display
> look strange in gdb in some circumstances.
> 
> For example, what happens if the printer triggers during a backtrace?
> Or if the mutex is nested (perhaps several layers deep) inside other
> structures (with "set print pretty on")?

is there a best practices doc ?  i'm not seeing anything in the manual:
https://sourceware.org/gdb/current/onlinedocs/gdb/Pretty-Printing.html#Pretty-Printing
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150313/5b760a16/attachment.sig>


More information about the Libc-alpha mailing list