Add test for thread names
authorSimon Marchi <simon.marchi@ericsson.com>
Thu, 26 Nov 2015 14:49:04 +0000 (09:49 -0500)
committerSimon Marchi <simon.marchi@ericsson.com>
Thu, 26 Nov 2015 18:09:30 +0000 (13:09 -0500)
commitf6512a69cd414a31e302daf107f5959ef06bcbec
tree660e13b01bedee4dd619031427eaa5d66f5ff0f9
parent79efa585c51f0657b319beb1e213d5721eaacdcc
Add test for thread names

I couldn't find a test that verified the thread name functionality, so I
created a new one.

A target board can define gdb,no_thread_names if it doesn't support thread
names and wants to skip the tests that uses them.

This test has been made with Linux in mind.  Not all platforms use
pthread_setname_np to set the thread name, but some #ifdefs can be added
later in order to support other platforms.

Tested on x86-64 Ubuntu 14.04, native and remote.

gdb/testsuite/ChangeLog:

* gdb.threads/names.exp: New file.
* gdb.threads/names.c: New file.
* README: Mention gdb,no_thread_names.
gdb/testsuite/ChangeLog
gdb/testsuite/README
gdb/testsuite/gdb.threads/names.c [new file with mode: 0644]
gdb/testsuite/gdb.threads/names.exp [new file with mode: 0644]