forked from Imagelibrary/binutils-gdb
gdb/gdbserver/
* remote-utils.c (prepare_resume_reply): Replace with macro target_core_of_thread. * server.c (handle_qxfer_threads_proper): Likewise. * target.h (traget_core_of_thread): New macro.
This commit is contained in:
@@ -1161,14 +1161,11 @@ handle_qxfer_threads_proper (struct buffer *buffer)
|
||||
{
|
||||
ptid_t ptid = thread_to_gdb_id ((struct thread_info *)thread);
|
||||
char ptid_s[100];
|
||||
int core = -1;
|
||||
int core = target_core_of_thread (ptid);
|
||||
char core_s[21];
|
||||
|
||||
write_ptid (ptid_s, ptid);
|
||||
|
||||
if (the_target->core_of_thread)
|
||||
core = (*the_target->core_of_thread) (ptid);
|
||||
|
||||
if (core != -1)
|
||||
{
|
||||
sprintf (core_s, "%d", core);
|
||||
|
||||
Reference in New Issue
Block a user