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

Dumping memory

Use the memory dump commands to dump memory. If an address is given that is known by SCODB to be a structure or union, SCODB automatically dumps it member by member; this is further described in ``Structure members''. This can be overridden by typecasting the address to (char *). For example:

   debug0:1> d (char *)&u
The d commands are used to examine memory contents. Depending on the mode of the d command selected, memory is shown grouped as bytes, shorts, or longs.

The ASCII value of each byte is displayed on the right of the screen, with a dot (.) denoting a non-printable character or white space, as in hd. Note that the bytes are displayed in the ASCII dump from low to high memory, while the memory dump displays memory in possibly larger memory groups which are byte-reversed.

After each line of memory is displayed, the user may move around the dump using the following vi movement keys: <j>, <k>, <Ctrl><u>, and <Ctrl><d>. The <Space> and <Return> keys are equivalent to <j> in that they display the next line.

Some examples of dumping memory:

   debug0:2> d &init_tbl
   init_tbl      D0089368 D009C544 D007E09C D0085CBC
   h...D..........
   init_tbl+10   D0083F3C D008265C D00863A8 D00826C8
   <?.....c...&..
   ...

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