This changes gdbserver to implement thread_name method.
return (*the_low_target.set_pc) (regcache, pc);
}
+const char *
+win32_process_target::thread_name (ptid_t thread)
+{
+ windows_thread_info *th
+ = windows_process.thread_rec (current_thread_ptid (),
+ DONT_INVALIDATE_CONTEXT);
+ return th->name.get ();
+}
+
/* The win32 target ops object. */
static win32_process_target the_win32_target;
bool stopped_by_sw_breakpoint () override;
bool supports_stopped_by_sw_breakpoint () override;
+
+ const char *thread_name (ptid_t thread) override;
};
/* Retrieve the context for this thread, if not already retrieved. */