This is the mail archive of the
mailing list for the glibc project.
Re: [RFC] Pretty printers for NPTL lock types
- From: Martin Galvan <martin dot galvan at tallertechnologies dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>
- Cc: libc-alpha at sourceware dot org, Daniel Gutson <daniel dot gutson at tallertechnologies dot com>, Torvald Riegel <triegel at redhat dot com>, Pedro Alves <palves at redhat dot com>
- Date: Wed, 11 Mar 2015 16:54:59 -0300
- Subject: Re: [RFC] Pretty printers for NPTL lock types
- Authentication-results: sourceware.org; auth=none
- References: <CAOKbPbbVud=gru917mXYfnOnQ9nCCY1vR4fvyU8JpRVzaGe5bw at mail dot gmail dot com> <55009964 dot 9070502 at redhat dot com>
On Wed, Mar 11, 2015 at 4:37 PM, Carlos O'Donell <firstname.lastname@example.org> wrote:
> On 03/11/2015 11:21 AM, Martin Galvan wrote:
> I would like to hear more about your testing.
> I would suggest two ways to test this:
> (a) Using gdb on the command line.
> (b) Using Eclipse + CDT to debug native applications with a gdb that
> sources this information. Then in the debug view look at what happens
> when you inspect a mutex object.
Hi Carlos! So far I've been testing it on the CLI using a few example
programs, some of which deliberately deadlock/do wrong things. I'll
test it on Eclipse as well for v2.
> As Tom noted the pretty-printers don't print things, they return strings
> that the higher level gdb then presents to the user.
> The last time I did this there were two easy ways to do this:
> (1) Return some kind of long string with data the user can read.
> (2) Return a tabular structure supported by gdb which results in
> a tabular view for higher level IDEs using gdb's machine interface
> e.g. gdb/MI, and I think the table view was `[var="val", ...]`,
> but I can't remember.
Right now I'd rather go with the first way, since it's simpler and
some of the info I'm printing isn't suited for a tabular view (e.g.
the warnings on a robust mutex's state being inconsistent).
> Please post a v2 for review and detail your testing please.
Will do. Thanks for the feedback!
Taller Technologies Argentina
San Lorenzo 47, 3rd Floor, Office 5
Phone: 54 351 4217888 / +54 351 4218211