GDB needs to know these things to talk to your MIPS:
mips-idt-ecoff-gdb
uses the MIPS remote serial protocol to
connect your development host machine to the target board. On the
target board itself, the IDT program IDT/sim
implements the
same protocol. (IDT/sim
runs automatically whenever the board is
powered up.)
Use these GDB commands to specify the connection to your target board:
target mips port
load
command to download
it. You can then use all the usual GDB commands.
For example, this sequence connects to the target board through a serial
port, and loads and runs a program called prog through the
debugger:
host$ mips-idt-ecoff-gdb prog GDB is free software and ... (gdb) target mips /dev/ttyb ... (gdb) load ... (gdb) run
target mips hostname:portnumber
hostname:portnumber
(assuming your IDT board is
connected so that this makes sense; for instance, to a serial line
managed by a terminal concentrator).
GDB also supports these special commands for IDT/MIPS targets:
set mipsfpu off
set remotedebug n
remotedebug
variable. If you set it to 1 using
`set remotedebug 1' every packet will be displayed. If you set it
to 2 every character will be displayed. You can check the current value
at any time with the command `show remotedebug'.