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=
"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>
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.
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
39 <br><dt><code>show endian
</code>
40 <dd>Display GDB's current idea of the target byte order.
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