xref: /illumos-gate/usr/src/test/util-tests/tests/mdb/sou/tst.anon.ksh.out (revision 8b184c19c5f61fa8890900f7bab686bf19b543d3)
1offsetof (struct foo, foo) = 0, sizeof (...->foo) = 4
2offsetof (struct bar, bar) = 0, sizeof (...->bar) = 8
3offsetof (struct bar, bar_foo) = 8, sizeof (...->bar_foo) = 4
4offsetof (struct bar, bar_int) = 8, sizeof (...->bar_int) = 4
5offsetof (struct baz, baz_str) = 0, sizeof (...->baz_str) = 8
6offsetof (struct baz, baz_anon) = 8, sizeof (...->baz_anon) = 4
7offsetof (struct baz, baz_int) = 0x10, sizeof (...->baz_int) = 4
8offsetof (struct foobar, foobar_int) = 0, sizeof (...->foobar_int) = 4
9offsetof (struct foobar, foo) = 8, sizeof (...->foo) = 4
10offsetof (struct foobar, bar) = 8, sizeof (...->bar) = 0x10
11offsetof (struct foobar, baz) = 8, sizeof (...->baz) = 0x18
12offsetof (struct foobar, foobar_anon) = 0x10, sizeof (...->foobar_anon) = 4
13offsetof (struct foobar, a) = 0x20, sizeof (...->a) = 4
14offsetof (struct foobar, b) = 0x24, sizeof (...->b) = 4
15offsetof (struct foobar, c) = 0x28, sizeof (...->c) = 4
16offsetof (struct foobar, d) = 0x2c, sizeof (...->d) = 4
17offsetof (struct foobar, e) = 0x2c, sizeof (...->e) = 4
18offsetof (struct foobar, f) = 0x2c, sizeof (...->f) = 4
19sizeof (struct foo) = 4
20sizeof (struct bar) = 0x10
21sizeof (struct baz) = 0x18
22sizeof (struct foobar) = 0x30
23{
24    foo = 0x2a
25}
26foo = 0x2a
27hello world
28bar_foo = {
29    bar_foo.foo = 0x7777
30}
31bar_foo.foo = 0x7777
32bar_foo.foo = 0x7777
33bar_int = 0x7777
34It's a trap?!
350x9999 0xfffffffc
360x9876 0x12345 0xb22b 0xfdcba 0xfdcba 0xfdcba
37Elbereth Elbereth
38foobar_int = 0xb295
390x7777 0x7777 0x7777 0x7777
40{
41    <anon> = {
42        <anon> = {
43            life = 0xaa7777aa
44            hope = 0x339999ee
45        }
46        dreams = 0xaa7777aa
47        <anon> = {
48            k = '\252'
49            e = 0x77aa
50            f = 0xaa7777aa
51            a = 0x339999eeaa7777aa
52        }
53        destroy = +3.9829317e-60
54    }
55}
56struct stringless {
57    union  <anon> = {
58        struct  <anon> = {
59            int life = 0xaa7777aa
60            int hope = 0x339999ee
61        }
62        int dreams = 0xaa7777aa
63        union  <anon> = {
64            char k = '\252'
65            short e = 0x77aa
66            int f = 0xaa7777aa
67            long a = 0x339999eeaa7777aa
68        }
69        double destroy = +3.9829317e-60
70    }
71}
72<anon> = {
73    <anon>.bar_foo = {
74        foo = 0x7777
75    }
76    <anon>.bar_int = 0x7777
77}
78<anon> = {
79    <anon>.a = 0x9876
80    <anon>.b = 0x12345
81    <anon>.c = 0xb22b
82}
83<anon> = {
84    <anon>.d = 0xfdcba
85    <anon>.e = 0xfdcba
86    <anon>.f = 0xfdcba
87}
88