Download bdiGDB User Manual

Transcript
bdiGDB for BDI3000 (PowerPC MPC85xx/P10xx/P2020)
User Manual
42
3.4 Telnet Interface
A Telnet server is integrated within the BDI. The Telnet channel is used by the BDI to output error
messages and other information. Also some basic debug commands can be executed.
Telnet Debug features:
• Display and modify memory locations
• Display and modify general and special purpose registers
• Single step a code sequence
• Set hardware breakpoints
• Load a code file from any host
• Start / Stop program execution
• Programming and Erasing Flash memory
During debugging with GDB, the Telnet is mainly used to reboot the target (generate a hardware reset and reload the application code). It may be also useful during the first installation of the bdiGDB
system or in case of special debug needs.
How to enter 64bit values:
The syntax for 64 bit parameters is : <high word>_<low word>
The "high word" and "low word" can be entered as decimal or hexadecimal. They are handled as two
separate values concatenated with an underscore.
Examples:
0x01234567_0x89abcdef
1_0
256
3_0x1234
0x80000000_0
=>>
=>>
=>>
=>>
=>>
0x0123456789abcdef
0x0000000100000000
0x0000000000000100
0x0000000300001234
0x8000000000000000
Example of a Telnet session:
BDI>info
Target CPU
: MPC8548 Rev.1
Target state
: halted
Debug entry cause : COP halt
Current PC
: 0x0ffe0d1c
Current CR
: 0x20004082
Current MSR
: 0x00021200
Current LR
: 0x0ffe0d4c
Current CCSRBAR
: 0x0_e0000000
BDI>md 0xfffff000
0_fffff000 : 7c1f42a6 3c208020 60210010 7c000800
0_fffff010 : 40820020 38002000 7c11f3a6 3c401000
......
|.B.< . `!..|...
@.. 8. .|...<@..
Notes:
The DUMP command uses TFTP to write a binary image to a host file. Writing via TFTP on a Linux/
Unix system is only possible if the file already exists and has public write access. Use "man tftpd" to
get more information about the TFTP server on your host.
© Copyright 1997-2014 by ABATRON AG Switzerland
V 1.08