Contents|Index|Previous|Next
GDB
and remote MIPS boards
GDB
can use the MIPS remote debugging protocol to talk to a MIPS board attached
to a serial line.
This is available when you
configure GDB with --target=mips-idt-ecoff.
Use the following GDB commands
to specify the connection to your target board.
GDB also supports the following
special commands for MIPS targets.
set processor args
show processor
Use the set
processor command
to set the type of MIPS processor when you want to access processor-type-specific
registers. For example, set
processor r3041
tells GDB to use the CPO registers appropriate for the 3041 chip. Use the
show processor
command to see what MIPS processor GDB is using. Use the info
reg command to
see what registers GDB is using.
set mipsfpu double
set mipsfpu single
set mipsfpu none
show mipsfpu
If your target board does
not support the MIPS floating point coprocessor, you should use the command
‘set mipsfpu none’
(if you need this, you may wish to put the command in your .gdbinit
file). This tells GDB how to find the return value of functions which return
floating point values. It also allows GDB to avoid saving the floating
point registers when calling functions on the board. If you are using a
floating point coprocessor with only single precision floating point support,
as on the R4650 processor, use the command ‘set
mipsfpu single’.
The default double precision floating point coprocessor may be selected
using ‘set mipsfpu
double’.
In previous versions, the
only choices were double precision or no floating point, so ‘set
mipsfpu on’ will
select double precision and ‘set
mipsfpu off’ will
select no floating point. As usual, you can inquire about the mipsfpu
variable with ‘show
mipsfpu’.
set remotedebug n
show remotedebug
You can see some debugging
information about communications with the board by setting the remotedebug
variable. If you set it to 1
using ‘set remotedebug
1’,
every packet is displayed. If you set it to 2,
every character is displayed. You can check the current value at any time
with the command, show
remotedebug.
set timeout seconds
set retransmit-timeout seconds
show timeout
show retransmit-timeout
Top|Contents|Index|Previous|Next