[PING 2][PATCH v3] Add pretty printers for the NPTL lock types
Carlos O'Donell
carlos@redhat.com
Fri Feb 5 16:19:00 GMT 2016
On 11/17/2015 10:55 AM, Florian Weimer wrote:
> On 11/17/2015 03:03 PM, Martin Galvan wrote:
>> 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
>
> Is there a test for this somewhere? Can it be put into glibc?
>
> I'm worried that these helpers break the debugging experience at some
> point, and we would like to catch that early. A test in glibc proper
> would help with that.
Agreed. This needs testing.
You need to:
- Create a test script that is run as a test.
- The test script needs to check for gdb, this can't
be done at host configure time because the test script
might be run on a remote host for cross-testing via the
test wrapper.
- If gdb is not present on the target then fail with
UNSUPPORTED (not sure if this is possible, we usually
mark unsupported testes by putting them into a special
Make variable).
- If gdb is present then run it with a script (-x) and
do some printing tests of various initialized mutexes
and a test program, and then compare that to expected
data (store the expected data in a file if you want)
and return PASS or FAIL.
Cheers,
Carlso.
More information about the Libc-alpha
mailing list