This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v8] Add pretty printers for the NPTL lock types
- From: Pedro Alves <palves at redhat dot com>
- To: Martin Galvan <martin dot galvan at tallertechnologies dot com>
- Cc: Siddhesh Poyarekar <siddhesh at sourceware dot org>, libc-alpha at sourceware dot org, "Carlos O'Donell" <carlos at redhat dot com>
- Date: Fri, 24 Jun 2016 23:31:34 +0100
- Subject: Re: [PATCH v8] Add pretty printers for the NPTL lock types
- Authentication-results: sourceware.org; auth=none
- References: <20160608153304 dot 12910-1-martin dot galvan at tallertechnologies dot com> <20160608153841 dot GA8366 at devel dot intra dot reserved-bit dot com> <CAOKbPbZCbrfM=FRq6e7C3c8uXp9v+BODAoh6Qat7XRwOb5cEHA at mail dot gmail dot com> <20160619164448 dot GA5245 at devel dot intra dot reserved-bit dot com> <CAOKbPbYpRcwJ8QNSgvW9BxkOeTSBnWEGGFRMOY=RSzoK6k1-Bw at mail dot gmail dot com> <20160620041246 dot GB5245 at devel dot intra dot reserved-bit dot com> <CAOKbPbZknCcBGozK_v8SC=PyJdczwr7ss6Y1y1hs2x8ag7cpxA at mail dot gmail dot com> <20160623164003 dot GC17911 at devel dot intra dot reserved-bit dot com> <CAOKbPbbp=-3XgwogxN90EGZxOPjiT_hkEWnaMuB4uz5Ox-njPw at mail dot gmail dot com> <20160624165111 dot GD30229 at devel dot intra dot reserved-bit dot com> <CAOKbPbZk8ONZ8pRMbFV72ek0p6=wk1GRZKF_2RCpz4LmnYt_zw at mail dot gmail dot com> <5f199c90-8bdf-4353-7083-4fef4e1d0619 at redhat dot com> <CAOKbPbY2dSoRDrrBebE5T234jU0doketbuBv0OdTzWm4wqbtmw at mail dot gmail dot com>
On 06/24/2016 11:04 PM, Martin Galvan wrote:
> Pedro: In our case we need gdb to automatically load the pretty printers
> before doing any testing, which is why I suggested placing a few lines
> in .gdbinit to do so. There's probably a better way to do it (perhaps
> manually copying the printers to some special path gdb can auto-load
> from?), but I thought it was good enough for testing.
You want to test the printers in the source tree, not the system
one's right? At least by default.
How about:
- add whatever lines those are to a gdb script that lives along
side the tests.
- have the harness start gdb with:
gdb -nx -ix /path/to/that/script
No need to manually tweak ~/.gdbinit that way.
Thanks,
Pedro Alves