Hurd: Adjust to "Per-inferior/Inferior-qualified thread IDs" changes
authorThomas Schwinge <thomas@codesourcery.com>
Tue, 24 May 2016 17:36:57 +0000 (19:36 +0200)
committerThomas Schwinge <thomas@codesourcery.com>
Wed, 7 Dec 2016 20:51:27 +0000 (21:51 +0100)
    [...]/gdb/gnu-nat.c: In function 'set_sig_thread_cmd':
    [...]/gdb/gnu-nat.c:2973:7: warning: implicit declaration of function 'thread_id_to_pid' [-Wimplicit-function-declaration]
           ptid_t ptid = thread_id_to_pid (atoi (args));
           ^
    [...]/gdb/gnu-nat.c:2973:7: error: invalid initializer

That's commit 5d5658a1d3c3eb2a09c03f2f0662a1c01963c869, which renamed
`thread_id_to_pid` to `global_thread_id_to_ptid`.

gdb/
* gnu-nat.c (set_sig_thread_cmd): Call global_thread_id_to_ptid
instead of thread_id_to_pid.

gdb/ChangeLog
gdb/gnu-nat.c

index c2511502a8cbd72f929dc1aedec3272093d8e874..61d12051d9d24a10d1f345af96bd529641a36f07 100644 (file)
@@ -1,3 +1,8 @@
+2016-12-07  Thomas Schwinge  <thomas@codesourcery.com>
+
+       * gnu-nat.c (set_sig_thread_cmd): Call global_thread_id_to_ptid
+       instead of thread_id_to_pid.
+
 2016-12-06  Simon Marchi  <simon.marchi@ericsson.com>
 
        * inferior.c (inferior_command): Remove duplicate
index 927ee5c6f17833e7f2ca4d5f6ab0f4a4d5cf035c..92b92924283939bc132f83beb92a5885f5d993c6 100644 (file)
@@ -2964,7 +2964,7 @@ set_sig_thread_cmd (char *args, int from_tty)
     inf->signal_thread = 0;
   else
     {
-      ptid_t ptid = thread_id_to_pid (atoi (args));
+      ptid_t ptid = global_thread_id_to_ptid (atoi (args));
 
       if (ptid_equal (ptid, minus_one_ptid))
        error (_("Thread ID %s not known.  "
This page took 0.029973 seconds and 4 git commands to generate.