aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_ptrace.h
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2009-09-17 19:19:59 +0000
committerJoel Brobecker <brobecker@gnat.com>2009-09-17 19:19:59 +0000
commit01dedca21da4eef10e57a1c1d8a11c75d9c6c829 (patch)
treeea182d016f0a8fbce98f1a9aaf9b593344ac5121 /gdb/gdb_ptrace.h
parentec7e75e76075c3d35c8abfa58acbb6abac2c9932 (diff)
downloadgdb-01dedca21da4eef10e57a1c1d8a11c75d9c6c829.zip
gdb-01dedca21da4eef10e57a1c1d8a11c75d9c6c829.tar.gz
gdb-01dedca21da4eef10e57a1c1d8a11c75d9c6c829.tar.bz2
Fix a build failure on pa-hpux:
* gdb_ptrace.h (PT_SYSCALL): Define here if not already defined. * inf-ttrace.c (inf_ttrace_wait): Fix compilation failure introduced after field syscall_id inside struct target_waitstatus has been renamed into syscall_number.
Diffstat (limited to 'gdb/gdb_ptrace.h')
-rw-r--r--gdb/gdb_ptrace.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/gdb_ptrace.h b/gdb/gdb_ptrace.h
index aeb46d5..8e32e88 100644
--- a/gdb/gdb_ptrace.h
+++ b/gdb/gdb_ptrace.h
@@ -106,6 +106,17 @@
# endif
#endif
+/* For systems such as HP/UX that do not provide PT_SYSCALL, define it
+ here as an alias for PT_CONTINUE. This is what the PT_SYSCALL
+ request is expected to do, in addition to stopping when entering/
+ exiting a system call. Chances are, if the system supports system
+ call tracing, enabling this feature is probably done separately;
+ and there is probably no special request that we would be required
+ to use when resuming the execution of our program. */
+#ifndef PT_SYSCALL
+# define PT_SYSCALL PT_CONTINUE
+#endif
+
/* Some systems, in particular DEC OSF/1, Digital Unix, Compaq Tru64
or whatever it's called these days, don't provide a prototype for
ptrace. Provide one to silence compiler warnings. */