[PING 2][RFC v3] Pretty printers for NPTL lock types
Martin Galvan
martin.galvan@tallertechnologies.com
Mon Apr 6 21:37:00 GMT 2015
Changes in v3:
* Rewrote the printers so that to_string will only return the type
name, and the attributes themselves will be returned using children().
* Added a simple Iterator class for the children() method.
* if/elif chain changed to dict lookup for mutex and mutexattr types.
* Added docstrings according to the style guide.
Changes in v2:
* Rewrote the printers so that to_string returns a string instead of
doing the actual printing.
--
Follow-up from https://sourceware.org/ml/libc-alpha/2015-03/msg00513.html .
This patch adds the pretty-printers for the following NPTL types:
- pthread_mutex_t
- pthread_mutexattr_t
- pthread_cond_t
- pthread_condattr_t
- pthread_rwlock_t
- pthread_rwlockattr_t
I've tested the printers on both the gdb CLI and Eclipse CDT. As this
is yet an RFC I didn't include things such as license/copyright
headers, changelogs, etc.
As always, any feedback is more than welcome. Thanks a lot!
--
Martin Galvan
Software Engineer
Taller Technologies Argentina
San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina
Phone: 54 351 4217888 / +54 351 4218211
-------------- next part --------------
A non-text attachment was scrubbed...
Name: printers.py
Type: text/x-python
Size: 22334 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20150406/05560a82/attachment.py>
More information about the Libc-alpha
mailing list