This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PING 3][PATCH v10] Add pretty printers for the NPTL lock types
- From: Martin Galvan <martin dot galvan at tallertechnologies dot com>
- To: libc-alpha at sourceware dot org, "Carlos O'Donell" <carlos at redhat dot com>, Siddhesh Poyarekar <sid at reserved-bit dot com>, Pedro Alves <palves at redhat dot com>, Stefan Liebler <stli at linux dot vnet dot ibm dot com>
- Date: Wed, 3 Aug 2016 15:29:40 -0300
- Subject: Re: [PING 3][PATCH v10] Add pretty printers for the NPTL lock types
- Authentication-results: sourceware.org; auth=none
- References: <20160803143224.2549-1-martin.galvan@tallertechnologies.com> <CAOKbPbZfe0fc=vtKM3gDxq21V2Ef9atdhEOobA5pcfx2Ta2cag@mail.gmail.com> <CAOKbPbbL6gj+a3EVmzUcYmsC3+v+7v_Qa81_f=sPbmTixMmDPw@mail.gmail.com>
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)?