]> granicus.if.org Git - strace/commitdiff
* strace.c (handle_stopped_tcbs): Fix cast for 4th argument passed to ptrace().
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 1 Jun 2009 18:45:41 +0000 (18:45 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 1 Jun 2009 18:45:41 +0000 (18:45 +0000)
ChangeLog
strace.c

index e0b1090464ba39db8085a6803038f79e496167c7..cea9670ede851b6ccb14f7b1066c9503b8b39f17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2009-06-01  Dmitry V. Levin  <ldv@altlinux.org>
 
+       * strace.c (handle_stopped_tcbs): Fix cast for 4th argument
+       passed to ptrace().
+
        * bjm.c (sys_query_module): Fix format warning reported by
        gcc -Wformat-security.
        * file.c (tprint_open_modes): Likewise.
index a2bbb6700014e9b7a4dd36636687a17dff46fa09..d351dc5e742646fb6d3ff7f4ec276fdccb990683 100644 (file)
--- a/strace.c
+++ b/strace.c
@@ -2602,7 +2602,7 @@ handle_stopped_tcbs(struct tcb *tcp)
                                 * Old kernels are known to lie here.
                                 */
                                if (ptrace(PTRACE_SETOPTIONS, pid, (char *) 0,
-                                       (void *) (PTRACE_O_TRACESYSGOOD | PTRACE_O_TRACEEXEC)) == 0)
+                                       (long) (PTRACE_O_TRACESYSGOOD | PTRACE_O_TRACEEXEC)) == 0)
                                        ptrace_stop_sig = SIGTRAP | 0x80;
                        }
 #endif
@@ -2629,7 +2629,7 @@ handle_stopped_tcbs(struct tcb *tcp)
                                /* Take a better look...  */
                                siginfo_t si;
                                si.si_signo = 0;
-                               ptrace(PTRACE_GETSIGINFO, pid, (void*) 0, (void*) &si);
+                               ptrace(PTRACE_GETSIGINFO, pid, (void*) 0, (long) &si);
                                /*
                                 * Check some fields to make sure we see
                                 * real SIGTRAP.