From eaa1f3dc182052d256fe4ef7c3f93f4f8e311242 Mon Sep 17 00:00:00 2001 From: Bryan McShea Date: Fri, 21 Oct 2022 02:03:52 -0400 Subject: [PATCH] hopefully wrote readme first try --- README.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/README.md b/README.md index d5ae935..24485f1 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ # help me + +gdb can only do so much + +If you're on linux, this is the script I use to run it +```sh +#!/bin/sh +make -s || exit +cd build + +if [ "$1" = "d" ]; then + qemu-riscv64 -g 1234 main & + riscv64-linux-gnu-gdb -q \ + -ex "target remote :1234" \ + main +else + qemu-riscv64 main +fi +``` + +As you can see, you need `qemu-riscv64` and `riscv64-linux-gnu-...`, I personally got both from my package manager. + +If you're not on linux, good luck +