]> granicus.if.org Git - strace/commitdiff
Group int-sized fields together in struct tcb
authorDenys Vlasenko <dvlasenk@redhat.com>
Wed, 24 Aug 2011 22:25:08 +0000 (00:25 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Wed, 24 Aug 2011 22:25:08 +0000 (00:25 +0200)
* defs.h: Group int-sized fields together in struct tcb.

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
defs.h

diff --git a/defs.h b/defs.h
index 89375aecc7667f64b026e6a41d3b692e510b8d50..a6b2da71f7940165d26674f7004e7aa1939256d2 100644 (file)
--- a/defs.h
+++ b/defs.h
@@ -389,19 +389,20 @@ extern int mp_ioctl(int f, int c, void *a, int s);
 struct tcb {
        int flags;              /* See below for TCB_ values */
        int pid;                /* Process Id of this entry */
-       long scno;              /* System call number */
        int u_nargs;            /* System call argument count */
+       int u_error;            /* Error code */
+       long scno;              /* System call number */
        long u_arg[MAX_ARGS];   /* System call arguments */
 #if defined (LINUX_MIPSN32)
        long long ext_arg[MAX_ARGS];    /* System call arguments */
 #endif
-       int u_error;            /* Error code */
        long u_rval;            /* (first) return value */
 #ifdef HAVE_LONG_LONG
        long long u_lrval;      /* long long return value */
 #endif
-       FILE *outf;             /* Output file for this process */
+       int ptrace_errno;
        int curcol;             /* Output column for this process */
+       FILE *outf;             /* Output file for this process */
        const char *auxstr;     /* Auxiliary info from syscall (see RVAL_STR) */
        struct timeval stime;   /* System time usage as of last process wait */
        struct timeval dtime;   /* Delta for system time usage */
@@ -409,7 +410,6 @@ struct tcb {
                                /* Support for tracing forked processes */
        long baddr;             /* `Breakpoint' address */
        long inst[2];           /* Instructions on above */
-       int ptrace_errno;
 #ifdef USE_PROCFS
        int pfd;                /* proc file descriptor */
 #endif