Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Numbers.html
blob13b8a4131d87528c238bfd6a5d115a952766d8b7
1 <html lang="en">
2 <head>
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">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Numbers">Numbers</a>,
13 Next:<a rel="next" accesskey="n" href="Messages-Warnings.html#Messages%2fWarnings">Messages/Warnings</a>,
14 Previous:<a rel="previous" accesskey="p" href="Screen-Size.html#Screen%20Size">Screen Size</a>,
15 Up:<a rel="up" accesskey="u" href="Controlling-GDB.html#Controlling%20GDB">Controlling GDB</a>
16 <hr><br>
17 </div>
19 <h3 class="section">Numbers</h3>
21 <p>You can always enter numbers in octal, decimal, or hexadecimal in
22 GDB by the usual conventions: octal numbers begin with
23 <code>0</code>, decimal numbers end with <code>.</code>, and hexadecimal numbers
24 begin with <code>0x</code>. Numbers that begin with none of these are, by
25 default, entered in base 10; likewise, the default display for
26 numbers--when no particular format is specified--is base 10. You can
27 change the default base for both input and output with the <code>set
28 radix</code> command.
30 <dl>
31 <dt><code>set input-radix </code><var>base</var><code></code>
32 <dd>Set the default base for numeric input. Supported choices
33 for <var>base</var> are decimal 8, 10, or 16. <var>base</var> must itself be
34 specified either unambiguously or using the current default radix; for
35 example, any of
37 <pre class="smallexample"> set radix 012
38 set radix 10.
39 set radix 0xa
40 </pre>
42 <p>sets the base to decimal. On the other hand, <code>set radix 10</code>
43 leaves the radix unchanged no matter what it was.
45 <br><dt><code>set output-radix </code><var>base</var><code></code>
46 <dd>Set the default base for numeric display. Supported choices
47 for <var>base</var> are decimal 8, 10, or 16. <var>base</var> must itself be
48 specified either unambiguously or using the current default radix.
50 <br><dt><code>show input-radix</code>
51 <dd>Display the current default base for numeric input.
53 <br><dt><code>show output-radix</code>
54 <dd>Display the current default base for numeric display.
55 </dl>
57 </body></html>