set endian big

Instruct GDB to assume the target is big-endian.

set endian little

Instruct GDB to assume the target is little-endian.

set endian auto

Instruct GDB to use the byte order associated with the

 

executable.

show endian

Display GDB'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.

136 Specifying a Debugging Target

Page 136
Image 136
HP gnu source-level debugger 5992-4701 manual Instruct GDB to assume the target is big-endian, Executable