This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb pretty printers for pthreads?


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]