From d5d833afcf70888c5186f5117540cfe49a928c4a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 7 Aug 2020 10:26:45 -0600 Subject: [PATCH] Change names given to Ravenscar threads Current a Ravenscar thread is given the same sort of name as a "CPU" thread; they can only be distinguished by looking at the output of "info thread". This patch changes ravenscar-thread.c to distinguish these threads, like: (gdb) continue Continuing. [New Ravenscar Thread 0x2b910] gdb/ChangeLog 2020-08-07 Tom Tromey * ravenscar-thread.c (ravenscar_thread_target) : Remove. (ravenscar_thread_target::extra_thread_info): Remove. (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; defer to target beneath for non-Ravenscar threads. --- gdb/ChangeLog | 8 ++++++++ gdb/ravenscar-thread.c | 13 ++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0f4a1fdc409..7bee9c9cbbd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2020-08-07 Tom Tromey + + * ravenscar-thread.c (ravenscar_thread_target) : + Remove. + (ravenscar_thread_target::extra_thread_info): Remove. + (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result; + defer to target beneath for non-Ravenscar threads. + 2020-08-07 Tom Tromey * ravenscar-thread.c (ravenscar_thread_target) pid_to_str (ptid); + + return string_printf ("Ravenscar Thread %#x", (int) ptid.tid ()); } void -- 2.30.2