]> granicus.if.org Git - strace/blobdiff - process.c
tests: add a test for -yy option
[strace] / process.c
index a152ad70bf21a74a94ef78eada33b5a779381281..e465319e71210c335b6265f0a5f654c0c4994810 100644 (file)
--- a/process.c
+++ b/process.c
@@ -131,7 +131,7 @@ unalignctl_string(unsigned int ctl)
 int
 sys_prctl(struct tcb *tcp)
 {
-       int i;
+       unsigned int i;
 
        if (entering(tcp)) {
                printxval(prctl_options, tcp->u_arg[0], "PR_???");
@@ -726,7 +726,7 @@ printargv(struct tcb *tcp, long addr)
                char data[sizeof(long)];
        } cp;
        const char *sep;
-       int n = 0;
+       unsigned int n = 0;
        unsigned wordsize = current_wordsize;
 
        cp.p64 = 1;
@@ -799,13 +799,6 @@ sys_execve(struct tcb *tcp)
                        tprints("]");
                }
        }
-#ifdef USE_LIBUNWIND
-       else {
-               if (stack_trace_enabled)
-                       unwind_cache_invalidate(tcp);
-       }
-#endif
-
        return 0;
 }
 
@@ -1872,6 +1865,23 @@ const struct xlat struct_user_offsets[] = {
        { 4*33, "sr" },
 #endif
 #ifdef XTENSA
+       { REG_A_BASE,           "a0"            },
+       { REG_A_BASE+1,         "a1"            },
+       { REG_A_BASE+2,         "a2"            },
+       { REG_A_BASE+3,         "a3"            },
+       { REG_A_BASE+4,         "a4"            },
+       { REG_A_BASE+5,         "a5"            },
+       { REG_A_BASE+6,         "a6"            },
+       { REG_A_BASE+7,         "a7"            },
+       { REG_A_BASE+8,         "a8"            },
+       { REG_A_BASE+9,         "a9"            },
+       { REG_A_BASE+10,        "a10"           },
+       { REG_A_BASE+11,        "a11"           },
+       { REG_A_BASE+12,        "a12"           },
+       { REG_A_BASE+13,        "a13"           },
+       { REG_A_BASE+14,        "a14"           },
+       { REG_A_BASE+15,        "a15"           },
+       { REG_PC,               "pc"            },
        { SYSCALL_NR,           "syscall_nr"    },
        { REG_AR_BASE,          "ar0"           },
        { REG_AR_BASE+1,        "ar1"           },
@@ -1944,23 +1954,6 @@ const struct xlat struct_user_offsets[] = {
        { REG_WB,               "wb"            },
        { REG_WS,               "ws"            },
        { REG_PS,               "ps"            },
-       { REG_PC,               "pc"            },
-       { REG_A_BASE,           "a0"            },
-       { REG_A_BASE+1,         "a1"            },
-       { REG_A_BASE+2,         "a2"            },
-       { REG_A_BASE+3,         "a3"            },
-       { REG_A_BASE+4,         "a4"            },
-       { REG_A_BASE+5,         "a5"            },
-       { REG_A_BASE+6,         "a6"            },
-       { REG_A_BASE+7,         "a7"            },
-       { REG_A_BASE+8,         "a8"            },
-       { REG_A_BASE+9,         "a9"            },
-       { REG_A_BASE+10,        "a10"           },
-       { REG_A_BASE+11,        "a11"           },
-       { REG_A_BASE+12,        "a12"           },
-       { REG_A_BASE+13,        "a13"           },
-       { REG_A_BASE+14,        "a14"           },
-       { REG_A_BASE+15,        "a15"           },
 #endif
 
        /* Other fields in "struct user" */
@@ -2110,7 +2103,7 @@ int
 sys_ptrace(struct tcb *tcp)
 {
        const struct xlat *x;
-       long addr;
+       unsigned long addr;
 
        if (entering(tcp)) {
                printxval(ptrace_cmds, tcp->u_arg[0], "PTRACE_???");