This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PING][PATCH v9] Add pretty printers for the NPTL lock types
On 2016-07-11 08:14, Siddhesh Poyarekar wrote:
> On Sun, Jul 10, 2016 at 09:17:16PM +0200, Aurelien Jarno wrote:
> > What are the requirements on the gdb side for this to work? I have gdb
> > version 7.11.1 and all the pretty printers tests fail this way:
> >
> > | Error: Response does not match the expected pattern.
> > | Command: print *rwlock
> > | Expected pattern: pthread_rwlock_t
> > | Response: $1 = {__data = {__lock = 0, __nr_readers = 0, __readers_wakeup = 0,
> > | __writer_wakeup = 0, __nr_readers_queued = 0, __nr_writers_queued = 0,
> > | __writer = 0, __shared = 0, __rwelision = 0 '\000',
> > | __pad1 = "\000\000\000\000\000\000", __pad2 = 0, __flags = 0},
> > | __size = '\000' <repeats 55 times>, __align = 0}
> > | gdb-test%
>
> You need to add:
>
> python
> import sys
> sys.path.insert(0, '/path/to/glibc/build/nptl')
> end
>
> source /path/to/glibc/nptl/nptl-printers.py
> add-auto-load-safe-path /path/to/glibc/build/nptl_db
>
> to your gdbinit for it to work. Martin, I think you need to fix this
> up using Pedro's suggestion sooner. If you're not going to be able to
> do it in time then I'll revert the patch until the next release.
Thanks, I confirm all the tests passes with this .gdbinit.
Aurelien
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
aurelien@aurel32.net http://www.aurel32.net