]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix a build failure on pa-hpux:
authorJoel Brobecker <brobecker@gnat.com>
Thu, 17 Sep 2009 19:22:30 +0000 (19:22 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 17 Sep 2009 19:22:30 +0000 (19:22 +0000)
        * 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.

gdb/ChangeLog
gdb/gdb_ptrace.h
gdb/inf-ttrace.c

index 908d8dbda32bfa22c87e86dd367b5a64bfabef8c..be5e382bf56dc0d5d7125591af70ad34b6978390 100644 (file)
@@ -1,3 +1,11 @@
+2009-09-17  Joel Brobecker  <brobecker@adacore.com>
+
+       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.
+
 2009-09-16  Joel Brobecker  <brobecker@adacore.com>
 
        * version.in: Set version to 6.8.91.20090916-cvs.
index aeb46d5520ecd81a9ac14c09ef03cadca9f9e41c..8e32e88577beac26dce38aedea5d7485de7998da 100644 (file)
 # 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.  */
index e136c24fd8fcb3d0ac782cadb7249e333c169bdb..52336191998a80f82bc69698fc34f771a83c61b5 100644 (file)
@@ -1104,7 +1104,7 @@ inf_ttrace_wait (struct target_ops *ops,
          inf_ttrace_disable_page_protections (tts.tts_pid);
        }
       ourstatus->kind = TARGET_WAITKIND_SYSCALL_ENTRY;
-      ourstatus->value.syscall_id = tts.tts_scno;
+      ourstatus->value.syscall_number = tts.tts_scno;
       break;
 
     case TTEVT_SYSCALL_RETURN:
@@ -1119,7 +1119,7 @@ inf_ttrace_wait (struct target_ops *ops,
          inf_ttrace_num_lwps_in_syscall--;
        }
       ourstatus->kind = TARGET_WAITKIND_SYSCALL_RETURN;
-      ourstatus->value.syscall_id = tts.tts_scno;
+      ourstatus->value.syscall_number = tts.tts_scno;
       break;
 
     default: