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

Changing memory as structures

If the address is given with a known structure-pointer type, the c command gives the user memory to be changed on a field-by-field basis.

To choose the field to modify, the user may use the j and k commands to go to the next and previous fields, respectively.

If the user is on a numeric (1, 2, or 4-byte, including pointer types) field, hexadecimal input can be given to modify the value of the field, or an <Esc> can be given to enter calculator mode.

If the user is on an array, bit field, structure or union field, a prompt will be given:

   debug0:3> c &u
           0000  0E84 char u_stack[E84]            Change [ynq]?
If y (for ``yes'') is entered, the user is given the memory region to change. Modification of memory past the range given (in this case, 0xE84 bytes) is not permitted, and SCODB beeps to signal the error.

Modification of bit fields is not currently guarded; you should use the calculator features of SCODB for changing bit field values.


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