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 3][PATCH v10] Add pretty printers for the NPTL lock types


On Wed, Aug 3, 2016 at 1:06 PM, Martin Galvan
<martin.galvan@tallertechnologies.com> wrote:
> Could you please
> take a look at that value and see if it's different from __mutex? You
> should be able to find it in the generated nptl_lock_constants.py. If
> it's also 0xffffffff, we may need to print both values in
> ConditionVariablePrinter.read_attributes and see why the comparison is
> failing.

I dug out the generated files, and saw that the generated value is
just -1. The printer in turn sees __mutex as a gdb.Value, which when
casted to (or compared with) int also shows -1. If your generated
PTHREAD_COND_SHARED is also -1, could you please check the value of
int(self.mutex)?


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