summaryrefslogtreecommitdiffstats
path: root/gdb/gdb_ptrace.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-07-25 20:42:29 +0000
committerMark Kettenis <kettenis@gnu.org>2005-07-25 20:42:29 +0000
commit4b8a1a2882dbf0f5bc93eed673d8fb6068ddb924 (patch)
tree5505fd3b823b9f03b3a62248537cfacf3d86d989 /gdb/gdb_ptrace.h
parentc7c14b96adb48fdf5916bd55ebb4ec88fd50f540 (diff)
downloadppe42-binutils-4b8a1a2882dbf0f5bc93eed673d8fb6068ddb924.tar.gz
ppe42-binutils-4b8a1a2882dbf0f5bc93eed673d8fb6068ddb924.zip
* gdb_ptrace.h (PT_TRACE_ME): Define to zero if not already
defined. * inf-ptrace.c: Tweak comments. (inf_ptrace_me): Use PT_TRACE_ME instead of hardcoded zero. (inf_ptrace_mourn_inferior): Call waitpid. (inf_ptrace_attach): Use pid_t, Remove unnecessary cast. (inf_ptrace_detach): Use pid_t. Use ptid_get_pid instead of PIDGET. (inf_ptrace_kill): Rename from inf_ptrace_kill_inferior. Use pid_t. Use ptid_get_pid instead of PIDGET. (inf_ptrace_kill): Call waitpid instead of wait. (inf_ptrace_resume): Use pid_t. Use ptid_get_pid instead of PIDGET. (inf_ptrace_wait): Use waitpid instead wait. Use pid_t. Don't call target_has_exited or target_thread_alive. Properly ignore terminated detached child processes. (inf_ptrace_has_exited): Remove function. (inf_ptrace_xfer_partial): Use pid_t. Use ptid_get_pid instead of PIDGET. Use gdb_byte instead of `unsigned char'. (inf_ptrace_thread_alive): Use ptid_get_pid instead of PIDGET. (inf_ptrace_pid_to_str): Remove function. (inf_ptrace_target): Use inf_ptrace_kill instead of inf_ptrace_kill_inferior. Use normal_pid_to_str instead of inf_ptrace_pid_to_str. Don't set to_has_exited. (inf_ptrace_fetch_register, inf_ptrace_store_register): Reformat long lines.
Diffstat (limited to 'gdb/gdb_ptrace.h')
-rw-r--r--gdb/gdb_ptrace.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h
index 7d27e3e058..1e3af45740 100644
--- a/gdb/gdb_ptrace.h
+++ b/gdb/gdb_ptrace.h
@@ -1,6 +1,6 @@
/* Portable <sys/ptrace.h>
- Copyright 2004 Free Software Foundation, Inc.
+ Copyright 2004, 2005 Free Software Foundation, Inc.
This file is part of GDB.
@@ -41,6 +41,10 @@
/* No need to include <unistd.h> since it's already included by
"defs.h". */
+#ifndef PT_TRACE_ME
+# define PT_TRACE_ME 0
+#endif
+
#ifndef PT_READ_I
# define PT_READ_I 1 /* Read word in child's I space. */
#endif
OpenPOWER on IntegriCloud