Chapter 20. Configuration-Specific Information
173
target array
dev
Array Tech LSI33K RAID controller board.
gdb also supports these 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 CPU
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
gdb init 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
You can control the timeout used while waiting for a packet, in the MIPS remote protocol,
with the
set timeout
seconds
command. The default is 5 seconds. Similarly, you can
control the timeout used while waiting for an acknowledgement of a packet with the
set
retransmit-timeout
seconds
command. The default is 3 seconds. You can inspect both
values with
show timeout
and
show retransmit-timeout
. (These commands are
only
available when gdb is configured for
-target=mips-idt-ecoff
.)
The timeout set by
set timeout
does not apply when gdb is waiting for your program to stop.
In that case, gdb waits forever because it has no way of knowing how long the program is going
to run before stopping.
20.3.7. OpenRISC 1000
See OR1k Architecture document (www.opencores.org) for more information about platform and
commands.
Содержание ENTERPRISE LINUX 4 - DEVELOPER TOOLS GUIDE
Страница 1: ...Red Hat Enterprise Linux 4 Debugging with gdb ...
Страница 12: ...2 Chapter 1 Debugging with gdb ...
Страница 28: ...18 Chapter 4 Getting In and Out of gdb ...
Страница 34: ...24 Chapter 5 gdb Commands ...
Страница 44: ...34 Chapter 6 Running Programs Under gdb ...
Страница 68: ...58 Chapter 8 Examining the Stack ...
Страница 98: ...88 Chapter 10 Examining Data ...
Страница 112: ...102 Chapter 12 Tracepoints ...
Страница 118: ...108 Chapter 13 Debugging Programs That Use Overlays ...
Страница 138: ...128 Chapter 14 Using gdb with Different Languages ...
Страница 144: ...134 Chapter 15 Examining the Symbol Table ...
Страница 170: ...160 Chapter 19 Debugging remote programs ...
Страница 198: ...188 Chapter 21 Controlling gdb ...
Страница 204: ...194 Chapter 22 Canned Sequences of Commands ...
Страница 206: ...196 Chapter 23 Command Interpreters ...
Страница 216: ...206 Chapter 25 Using gdb under gnu Emacs ...
Страница 296: ...286 Chapter 27 gdb Annotations ...
Страница 300: ...290 Chapter 28 Reporting Bugs in gdb ...
Страница 322: ...312 Chapter 30 Using History Interactively ...
Страница 362: ...352 Appendix D gdb Remote Serial Protocol ...
Страница 380: ...370 Appendix F GNU GENERAL PUBLIC LICENSE ...
Страница 386: ...376 Appendix G GNU Free Documentation License ...
Страница 410: ......