diff options
Diffstat (limited to 'gdb/test2.c')
-rw-r--r-- | gdb/test2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/test2.c b/gdb/test2.c new file mode 100644 index 0000000..e6964f0 --- /dev/null +++ b/gdb/test2.c @@ -0,0 +1,13 @@ +#include <sys/param.h> +#include <sys/dir.h> +#include <sys/user.h> +#include <stdio.h> + +main () +{ + struct user u; + printf ("&u.u_ar0 - &u = %d, 0%o\n", (int) &u.u_ar0 - (int) &u, + (int) &u.u_ar0 - (int) &u); + printf ("sizeof (struct pcb) = %d, 0%o\n", + sizeof (struct pcb), sizeof (struct pcb)); +} |