DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
Using SCODB on SVR5

Structure members

Use the struct command to print structure member values, offsets, and declarations:

   struct [stname] [->member] [members] address     /* Show structure field values */
The stname (structure name) argument does not have to be given if the type of address can be determined.

The following example illustrates dumping memory from address &u (the user structure) as a struct user:

   debug0:1> struct user &u
   struct user size = 1390 bytes
   &u = E0000000:
           0000  0E84 char u_stack[E84]
           0E84  00F8 union u_fps u_fps
   .
   .
   .
           10EA  0002 unsigned short u_uid        0304
           10EC  0002 unsigned short u_gid        000A
   .
   .
   .
           1148  0018 int u_arg[6]
   .
   .
   .

© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005