Difference between revisions of "RZ-A/Boards/debug-gr-peach.sh"

From eLinux.org
Jump to: navigation, search
(Created page with "<pre> #!/bin/bash if [ -f .gdbinit ]; then echo "Backup old .gdbinit to .gdbinit-old" mv .gdbinit .gdbinit-old fi VMLINUX=linux-build-xip/vmlinux echo "targ...")
 
m (Jmondi moved page Debug-gr-peach.sh to RZ-A/Boards/debug-gr-peach.sh: RZ-A/Boards/debug-gdb-gr-peach.sh)
 
(No difference)

Latest revision as of 08:41, 9 October 2017

#!/bin/bash

if [ -f .gdbinit ]; then
        echo "Backup old .gdbinit to .gdbinit-old"
        mv .gdbinit .gdbinit-old
fi

VMLINUX=linux-build-xip/vmlinux

echo "target remote localhost:2331" >> .gdbinit
echo "monitor reset" >> .gdbinit
echo "file " $VMLINUX >> .gdbinit
echo "monitor go" >> .gdbinit

echo "Start GDB server... (run 'arm-none-eabi-gdb  -tui' in this directory)"
JLinkGDBServer -speed 15000 -device R7S721001