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


>>>>> "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")?

Tom


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