This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: gdb pretty printers for pthreads?
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Daniel Gutson <daniel dot gutson at tallertechnologies dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 10 Feb 2015 09:24:49 -0500
- Subject: Re: gdb pretty printers for pthreads?
- Authentication-results: sourceware.org; auth=none
- References: <CAF5HaEW6DckPaY+arYPcvGOUa-NYrJosH+Za=gq3=H7eZiEqMQ at mail dot gmail dot com> <54D92A10 dot 9070408 at redhat dot com> <CAF5HaEXBtWdqbeYU_1=rKdYSO0SCFuUxrpmpbHMqBkaKc4JApg at mail dot gmail dot com>
On 02/09/2015 05:19 PM, Daniel Gutson wrote:
> Hi Carlos, so long!
Indeed! Nice to see you, even if virtually.
> On Mon, Feb 9, 2015 at 6:43 PM, Carlos O'Donell <carlos@redhat.com> wrote:
>> On 02/09/2015 12:08 PM, Daniel Gutson wrote:
>>> Hi,
>>>
>>> are there any "official" gdb pretty printers for pthreads? E.g.
>>> printing the state of a mutex or a conditional variable.
>>>
>>> If there are not, we could start an initial version.
>>
>> There are no official gdb pretty printers for pthreads.
>>
>> If you are interested in working on pthread pretty printers that
>> would be excellent. Any contributions are more than welcome.
>>
>> Please see:
>> https://sourceware.org/glibc/wiki/Contribution%20checklist
>
> Thanks. We'll create a first version of a gdb plugin to pretty-print
> the following NPTL types:
> - pthread_mutex_t
> * pthread_mutexattr_t
> - pthread_cond_t
> - pthread_rwlock_t
Whatever you want to work on is OK with me.
Keep in mind that these structures may vary by machines.
They are opaque types to userspace, but internally we
have variations like on x86 we have lock elision bits,
and on hppa we some compat words.
Feel free to support those architectures you care about,
but it would be nice if you provided enough flexibility
to allow other authors to copy and modify.
As always, please make sure you have FSF copyright
assignments in place for all authors.
Cheers,
Carlos.