aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-05-24 20:05:07 +0000
committerMark Kettenis <kettenis@gnu.org>2001-05-24 20:05:07 +0000
commit2747183e555bd0071ef725be5d7b3bf5d81c97b5 (patch)
treeb572f754e5035a3bccbb6a5e8da7843e2d753032 /gdb/gnu-nat.c
parent58e2fc9047dbf77d56ed2afad1bf1dc05156684a (diff)
downloadgdb-2747183e555bd0071ef725be5d7b3bf5d81c97b5.zip
gdb-2747183e555bd0071ef725be5d7b3bf5d81c97b5.tar.gz
gdb-2747183e555bd0071ef725be5d7b3bf5d81c97b5.tar.bz2
* gnu-nat.c: Include <ctype.h>.
(gnu_pid_to_exec_file): Add PID parameter. (set_sig_thread_cmd): Use PIDGET on return value from thread_id_to_pid. (proc_string): Use MERGEPID to construct argument to pid_to_thread_id.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 0939931..0e584e9 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -24,6 +24,7 @@
Boston, MA 02111-1307, USA.
*/
+#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <setjmp.h>
@@ -2222,7 +2223,7 @@ gnu_stop (void)
}
static char *
-gnu_pid_to_exec_file (void)
+gnu_pid_to_exec_file (int pid)
{
error ("to_pid_to_exec_file target function not implemented");
return NULL;
@@ -2476,7 +2477,7 @@ proc_string (struct proc *proc)
sprintf (tid_str, "process %d", proc->inf->pid);
else
sprintf (tid_str, "thread %d.%d",
- proc->inf->pid, pid_to_thread_id (proc->tid));
+ proc->inf->pid, pid_to_thread_id (MERGEPID (proc->tid, 0)));
return tid_str;
}
@@ -2836,7 +2837,7 @@ set_sig_thread_cmd (char *args, int from_tty)
inf->signal_thread = 0;
else
{
- int tid = thread_id_to_pid (atoi (args));
+ int tid = PIDGET (thread_id_to_pid (atoi (args)));
if (tid < 0)
error ("Thread ID %s not known. Use the \"info threads\" command to\n"
"see the IDs of currently known threads.", args);