From 1c632029d7a02742b0cc740b6984ce139429b88b Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Fri, 29 Nov 2024 17:21:07 +0100 Subject: checkpoint --- bin/extra/gdbs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/extra/gdbs (limited to 'bin/extra/gdbs') diff --git a/bin/extra/gdbs b/bin/extra/gdbs new file mode 100755 index 0000000..e0fa371 --- /dev/null +++ b/bin/extra/gdbs @@ -0,0 +1,14 @@ +#!/bin/sh + +gdbs="$HOME/.cache/gdbs" + +command="$@" +if [ -z "$command" ]; then + [ -f ] && command="$(cat "$gdbs" 2>/dev/null)" + [ "$command" ] || exit 1 +fi + +gdbserver :4200 $command + +echo "$command" > "$gdbs" + -- cgit v1.2.3