From 02e49123daebb8e59f068a3b8c5c2541af6efd78 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 16 Dec 2020 21:55:26 +0100 Subject: [PATCH] CLI frontend: Add missing name to gdb thread This broke in 101fa1ef58f40eccdbe247a355c91318da035724. --- desmume/src/frontend/posix/cli/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/desmume/src/frontend/posix/cli/main.cpp b/desmume/src/frontend/posix/cli/main.cpp index 194245fe9..af8cdfa52 100644 --- a/desmume/src/frontend/posix/cli/main.cpp +++ b/desmume/src/frontend/posix/cli/main.cpp @@ -252,10 +252,11 @@ error: */ #ifdef GDB_STUB void * -createThread_gdb( void (*thread_function)( void *data), - void *thread_data) { - SDL_Thread *new_thread = SDL_CreateThread( (int (*)(void *data))thread_function, - thread_data); +createThread_gdb(void (*thread_function)(void *data), + void *thread_data) { + SDL_Thread *new_thread = SDL_CreateThread((int (*)(void *data))thread_function, + "gdb-stub", + thread_data); return new_thread; }