aboutsummaryrefslogtreecommitdiffhomepage
path: root/content/20191027-kernel-debugging-qemu/run.sh
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2021-07-15 21:20:14 +0200
committerjohannst <johannes.stoelp@gmail.com>2021-07-15 21:20:14 +0200
commit82e9ac4163b46b59e121194f84ac370818482923 (patch)
treeb52adf8f5b2bafe7904f563c33ec23f46cb7c87c /content/20191027-kernel-debugging-qemu/run.sh
parent617d73fc9eff5b08a80b873fd97f66caa7e80fc9 (diff)
downloadblog-82e9ac4163b46b59e121194f84ac370818482923.tar.gz
blog-82e9ac4163b46b59e121194f84ac370818482923.zip
use proper date fmt in content file names that zola can automatically can derive the date
Diffstat (limited to 'content/20191027-kernel-debugging-qemu/run.sh')
-rwxr-xr-xcontent/20191027-kernel-debugging-qemu/run.sh24
1 files changed, 0 insertions, 24 deletions
diff --git a/content/20191027-kernel-debugging-qemu/run.sh b/content/20191027-kernel-debugging-qemu/run.sh
deleted file mode 100755
index b0a84ae..0000000
--- a/content/20191027-kernel-debugging-qemu/run.sh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/bin/bash
-
-VER=5.13.2
-
-# Launch the emulator with our kernel.
-qemu-system-x86_64 \
- -kernel ./linux-$VER/arch/x86/boot/bzImage \
- -nographic \
- -append "earlyprintk=ttyS0 console=ttyS0 nokaslr init=/init debug" \
- -initrd ./initramfs.cpio.gz \
- -serial telnet:localhost:12345,server,nowait \
- -monitor none \
- -gdb tcp::1234 \
- -S &
-
-# Kill qemu when we exit.
-QEMU_PID=$!
-trap "kill $QEMU_PID" EXIT
-
-# Give qemu some time to come up.
-sleep 0.5
-
-# Attach debugger to qemu and load the kernel symbols.
-gdb -ex 'target remote :1234' ./linux-$VER/vmlinux