Skip to content

Commit a8638b0

Browse files
star/9001027776: Fix invalid GDB command in README
Command to connect to remote server is `target remote :2331` not `set target remote :2331`. Signed-off-by: Anton Kolesov <[email protected]>
1 parent 94d7a45 commit a8638b0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,12 +476,14 @@ follows:
476476
$ arc-elf32-gcc -mcpu=arcem -g --specs=nsim.specs simple.c
477477
$ arc-elf32-gdb --quiet a.out
478478
(gdb) set tdesc filename toolchain/extras/opella-xd/opella-arcem-tdesc.xml
479-
(gdb) set target remote :2331
479+
(gdb) target remote :2331
480480
(gdb) load
481481
(gdb) break main
482482
(gdb) continue
483483
(gdb) break exit
484484
(gdb) continue
485+
# Register R0 contains exit code of function main()
486+
(gtb) info reg r0
485487
(gdb) quit
486488

487489
Similar to OpenOCD hostlink is not available in GDB with Ashling Opella-XD.

0 commit comments

Comments
 (0)