changeset 1:d56c48888d7f

Add debug script
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Sun, 22 Oct 2017 18:31:28 +0900
parents c450faca55f4
children a930f7f3a74f
files Dockerfile connect.gdb debug.sh run-debug.sh
diffstat 4 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Dockerfile	Sun Oct 22 18:25:39 2017 +0900
+++ b/Dockerfile	Sun Oct 22 18:31:28 2017 +0900
@@ -4,6 +4,6 @@
 RUN apt-get install gcc-arm-none-eabi gdb-arm-none-eabi qemu-system-arm mercurial -y
 WORKDIR /code
 RUN hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/innparusu/xv6_rpi_port/
-WORKDIR /code/xv6_rpi_port/src
+WORKDIR /code/xv6_rpi_port/
 RUN make
 CMD /bin/bash
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connect.gdb	Sun Oct 22 18:31:28 2017 +0900
@@ -0,0 +1,2 @@
+symbol kernel.elf
+target remote tcp::1234
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/debug.sh	Sun Oct 22 18:31:28 2017 +0900
@@ -0,0 +1,2 @@
+#!/bin/sh
+arm-none-eabi-gdb -x connect.gdb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/run-debug.sh	Sun Oct 22 18:31:28 2017 +0900
@@ -0,0 +1,2 @@
+#!/bin/sh
+qemu-system-arm -M versatilepb -m 128 -cpu arm1176 -nographic -singlestep -d exec,cpu,guest_errors -D qemu.log -kernel build/output.elf -s -S