12.07.2015 Views

ARM DS-5 Using the Debug Hardware Configuration Utilities

ARM DS-5 Using the Debug Hardware Configuration Utilities

ARM DS-5 Using the Debug Hardware Configuration Utilities

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Configuring debug hardware for GDBarm-elf-gdb(gdb) file demo.elf(gdb) target remote rvi5:4001Remote debugging using rvi5:40010x00000000 in $a ()(gdb)(gdb) load demo.elfLoading section .vectors, size 0x30 lma 0x0Loading section .text, size 0x1dbcc lma 0x8000Loading section .rodata, size 0x1bcb4 lma 0x25bccLoading section .data, size 0xc84 lma 0x41980Start address 0x8000, load size 238900Transfer rate: 106177 bits/sec, 318 bytes/write.(gdb)(gdb) cContinuing.5. Start ano<strong>the</strong>r GDB session to debug <strong>the</strong> image in <strong>the</strong> usual way, using (in this example)port 5001, <strong>the</strong> first available port of debug hardware:(gdb) set remotetimeout 10(gdb) file myprogram(gdb) target remote rvi5:5001NoteYou only have to perform steps 1 to 3 once at <strong>the</strong> start. You can perform steps 4 and 5 as oftenas required.9.10.4 See alsoTasks• Connections to a target without built-in GDB support (RVI-GDB) on page 9-11• Connections to a target GDB stub using Virtual E<strong>the</strong>rnet/TTY mode (Target-GDB-VirtualE<strong>the</strong>rnet) on page 9-15• Connections to a target OS using gdbserver (GDBserver) on page 9-17• Connections to a target OS using NFS (GDB-NFS) on page 9-19.Reference• Connection methods for each debugging mode on page 9-10• rvigdbconfig command syntax on page 9-27.<strong>ARM</strong> DUI 0498F Copyright © 2010-2012 <strong>ARM</strong>. All rights reserved. 9-14ID021112Non-Confidential

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!