Work around MinGW mangling of "host:/path"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Byte-Order.html
blob1fae8c804662cdccfba20feb9ad10f5979d4db98
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="Byte%20Order">Byte Order</a>,
13 Next:<a rel="next" accesskey="n" href="Remote.html#Remote">Remote</a>,
14 Previous:<a rel="previous" accesskey="p" href="Target-Commands.html#Target%20Commands">Target Commands</a>,
15 Up:<a rel="up" accesskey="u" href="Targets.html#Targets">Targets</a>
16 <hr><br>
17 </div>
19 <h3 class="section">Choosing target byte order</h3>
21 <p>Some types of processors, such as the MIPS, PowerPC, and Hitachi SH,
22 offer the ability to run either big-endian or little-endian byte
23 orders. Usually the executable or symbol will include a bit to
24 designate the endian-ness, and you will not need to worry about
25 which to use. However, you may still find it useful to adjust
26 GDB's idea of processor endian-ness manually.
28 <dl>
29 <dt><code>set endian big</code>
30 <dd>Instruct GDB to assume the target is big-endian.
32 <br><dt><code>set endian little</code>
33 <dd>Instruct GDB to assume the target is little-endian.
35 <br><dt><code>set endian auto</code>
36 <dd>Instruct GDB to use the byte order associated with the
37 executable.
39 <br><dt><code>show endian</code>
40 <dd>Display GDB's current idea of the target byte order.
42 </dl>
44 <p>Note that these commands merely adjust interpretation of symbolic
45 data on the host, and that they have absolutely no effect on the
46 target system.
48 </body></html>