Add 'debug-threads' suboption to --name

Add flag storage to qemu-thread-* to store the namethreads flag

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Dr. David Alan Gilbert 2014-01-30 10:20:31 +00:00 committed by Michael S. Tsirkin
parent 5d12f961c6
commit 8f480de0c9
5 changed files with 30 additions and 2 deletions

View file

@ -16,6 +16,14 @@
#include <assert.h>
#include <limits.h>
static bool name_threads;
void qemu_thread_naming(bool enable)
{
/* But note we don't actually name them on Windows yet */
name_threads = enable;
}
static void error_exit(int err, const char *msg)
{
char *pstr;