Go to the first, previous, next, last section, table of contents.


How modes are displayed

The Chill Datatype- (Mode) support of GDB is directly related with the functionality of the GNU Chill compiler, and therefore deviates slightly from the standard specification of the Chill language. The provided modes are:

Discrete modes:
Powerset Mode:
A Powerset Mode is displayed by the keyword POWERSET followed by the member mode of the powerset. The member mode can be any discrete mode.
(gdb) ptype x
type = POWERSET SET (egon, hugo, otto)
Reference Modes:
Procedure mode
The procedure mode is displayed by type = PROC(<parameter list>) <return mode> EXCEPTIONS (<exception list>). The <parameter list> is a list of the parameter modes. <return mode> indicates the mode of the result of the procedure if any. The exceptionlist lists all possible exceptions which can be raised by the procedure.
Synchronization Modes:
Timing Modes:
Real Modes:
Real Modes are predefined with REAL and LONG_REAL.
String Modes:
Array Mode:
The Array Mode is displayed by the keyword ARRAY(<range>) followed by the element mode (which may in turn be an array mode).
(gdb) ptype x
type = ARRAY (1:42)
          ARRAY (1:20)
             SET (karli = 10, susi = 20, fritzi = 100)
Structure Mode
The Structure mode is displayed by the keyword STRUCT(<field list>). The <field list> consists of names and modes of fields of the structure. Variant structures have the keyword CASE <field> OF <variant fields> ESAC in their field list. Since the current version of the GNU Chill compiler doesn't implement tag processing (no runtime checks of variant fields, and therefore no debugging info), the output always displays all variant fields.
(gdb) ptype str
type = STRUCT (
    as x,
    bs x,
    CASE bs OF
    (karli):
        cs a
    (ott):
        ds x
    ESAC
)


Go to the first, previous, next, last section, table of contents.