about summary refs log tree commit diff stats
path: root/dev/c/src/linux/rungdb.sh
diff options
context:
space:
mode:
authorpunk <punk@libernaut>2021-04-21 15:42:20 +0100
committerpunk <punk@libernaut>2021-04-21 15:42:20 +0100
commit4107462e9ec1cabaa7f89bd8478caec3f0d5b46a (patch)
treea2e34d995cef5ac8068ec7047e93b1125c80d175 /dev/c/src/linux/rungdb.sh
parentcfce80c5a0b8bc1eccc2f22a0d5d045d29467083 (diff)
parenteac48b5a8d709135a95abcc2243b369095f074f4 (diff)
downloaddoc-4107462e9ec1cabaa7f89bd8478caec3f0d5b46a.tar.gz
Merge branch 'master' into develop
Diffstat (limited to 'dev/c/src/linux/rungdb.sh')
-rw-r--r--dev/c/src/linux/rungdb.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev/c/src/linux/rungdb.sh b/dev/c/src/linux/rungdb.sh
new file mode 100644
index 0000000..9408d7f
--- /dev/null
+++ b/dev/c/src/linux/rungdb.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+gdb \
+    -ex "add-auto-load-safe-path $(pwd)" \
+    -ex "file vmlinux" \
+    -ex 'set arch i386:x86-64:intel' \
+    -ex 'target remote localhost:1234' \
+    -ex 'hbreak start_kernel' \
+    -ex 'continue' \
+    -ex 'disconnect' \
+    -ex 'set arch i386:x86-64' \
+    -ex 'target remote localhost:1234'