3 <title>Debugging with GDB
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Debugging with GDB">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"M2%20Constants">M2 Constants
</a>,
13 Next:
<a rel=
"next" accesskey=
"n" href=
"M2-Defaults.html#M2%20Defaults">M2 Defaults
</a>,
14 Previous:
<a rel=
"previous" accesskey=
"p" href=
"Built-In-Func-Proc.html#Built-In%20Func%2fProc">Built-In Func/Proc
</a>,
15 Up:
<a rel=
"up" accesskey=
"u" href=
"Modula-2.html#Modula-2">Modula-
2</a>
19 <h5 class=
"subsubsection">Constants
</h5>
21 GDB allows you to express the constants of Modula-
2 in the following
26 <li>Integer constants are simply a sequence of digits. When used in an
27 expression, a constant is interpreted to be type-compatible with the
28 rest of the expression. Hexadecimal integers are specified by a
29 trailing
<code>H
</code>, and octal integers by a trailing
<code>B
</code>.
31 <li>Floating point constants appear as a sequence of digits, followed by a
32 decimal point and another sequence of digits. An optional exponent can
33 then be specified, in the form
<code>E
</code>[
<code>+
</code>|
<code>-
</code>]
<code></code><var>nnn
</var><code></code>, where
34 <code></code>[
<code>+
</code>|
<code>-
</code>]
<code></code><var>nnn
</var><code></code> is the desired exponent. All of the
35 digits of the floating point constant must be valid decimal (base
10)
38 <li>Character constants consist of a single character enclosed by a pair of
39 like quotes, either single (
<code>'
</code>) or double (
<code>"</code>). They may
40 also be expressed by their ordinal value (their <small>ASCII</small> value, usually)
41 followed by a <code>C</code>.
43 <li>String constants consist of a sequence of characters enclosed by a
44 pair of like quotes, either single (<code>'</code>) or double (<code>"</code>).
45 Escape sequences in the style of C are also allowed. See
<a href=
"C-Constants.html#C%20Constants">C and C
<tt>++
</tt> constants
</a>, for a brief explanation of escape
48 <li>Enumerated constants consist of an enumerated identifier.
50 <li>Boolean constants consist of the identifiers
<code>TRUE
</code> and
53 <li>Pointer constants consist of integral values only.
55 <li>Set constants are not yet supported.