diff options
author | gdb-2.4+.aux.coff <gdb@fsf.org> | 1988-01-16 04:39:57 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2012-06-03 15:36:30 +0100 |
commit | 7b4ac7e1ed2c4616bce56d1760807798be87ac9e (patch) | |
tree | 777c9f6aba126e91e4a25d7b1fa34c2213d038da /gdb/test2.c | |
download | gdb-7b4ac7e1ed2c4616bce56d1760807798be87ac9e.zip gdb-7b4ac7e1ed2c4616bce56d1760807798be87ac9e.tar.gz gdb-7b4ac7e1ed2c4616bce56d1760807798be87ac9e.tar.bz2 |
gdb-2.4+.aux.coff
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)); +} |