/sys$common/syshlp/DBG$HELP.HLB  —  DEBUG  DEPOSIT  Description, Continued...
    The debugger might do type conversion during a deposit operation
    if the language rules allow it. For example, a real value
    specified to the right of the equal sign might be converted to
    an integer value if it is being deposited into a location with
    an integer type. In general, the debugger tries to follow the
    assignment rules for the current language.

    There are several ways of changing the type associated with a
    program location so that you can deposit data of a different type
    into that location:

    o  To change the default type for all locations that do not have
       a symbolic name, you can specify a new type with the SET TYPE
       command.

    o  To change the default type for all locations (both those that
       do and do not have a symbolic name), you can specify a new
       type with the SET TYPE/OVERRIDE command.

    o  To override the type currently associated with a particular
       location for the duration of a single DEPOSIT command, you
       can specify a new type by using a qualifier (/ASCII:n, /BYTE,
       /TYPE=(name), and so on).

    When debugging a C program, or a program in any case-specific
    language, you cannot use the DEPOSIT/TYPE command if the type
    specified is a mixed or lowercase name. For example, suppose the
    program has a function like the following:

    xyzzy_type foo ()
    {
    xyzzy_type     z;
    z = get_z ();
    return (z);
    }

    If you try to enter the following command, the debugger issues a
    message that it cannot find the type "xyzzy_type":

    DBG> DEPOSIT/TYPE=(xyzzy_type) z="whatever"

    The debugger can interpret and display integer data in any one of
    four radixes: binary, decimal, hexadecimal, and octal.

    The default radix for both data entry and display is decimal for
    most languages. The exceptions are BLISS and MACRO, which have a
    default radix of hexadecimal.

    You can use the SET RADIX and SET RADIX/OVERRIDE commands to
    change the default radix.

    The DEPOSIT command sets the current entity built-in symbols
    %CURLOC and period (.)  to the location denoted by the address
    expression specified. Logical predecessors (%PREVLOC or the
    circumflex character (^))  and successors (%NEXTLOC) are based
    on the value of the current entity.

    Related commands:

       CANCEL TYPE/OVERRIDE
       EVALUATE
       EXAMINE
       MONITOR
       (SET,SHOW,CANCEL) RADIX
       (SET,SHOW) TYPE
Close Help