manpagez: man pages & more
info gdb
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

16.3 Choosing Target Byte Order

Some types of processors, such as the MIPS, PowerPC, and Renesas SH, offer the ability to run either big-endian or little-endian byte orders. Usually the executable or symbol will include a bit to designate the endian-ness, and you will not need to worry about which to use. However, you may still find it useful to adjust No value for GDBN's idea of processor endian-ness manually.

set endian big

Instruct No value for GDBN to assume the target is big-endian.

set endian little

Instruct No value for GDBN to assume the target is little-endian.

set endian auto

Instruct No value for GDBN to use the byte order associated with the executable.

show endian

Display No value for GDBN's current idea of the target byte order.

Note that these commands merely adjust interpretation of symbolic data on the host, and that they have absolutely no effect on the target system.

© 2000-2021
Individual documents may contain additional copyright information.