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: [RFC v2] Pretty printers for NPTL lock types


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

Attachment: signature.asc
Description: Digital signature


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