diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-23 00:08:44 +0100 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2023-11-26 01:16:49 +0100 |
commit | 3e8ff92446ae772c202b581e2250e2eb2affe5cb (patch) | |
tree | 56f09f38b447d2c28d67f28ce5847d6a9f5a6a60 /content/2019-10-27-kernel-debugging-qemu/run.sh | |
parent | 4ba0f9c95a4d20803e19080918c9e06913834b35 (diff) | |
download | blog-3e8ff92446ae772c202b581e2250e2eb2affe5cb.tar.gz blog-3e8ff92446ae772c202b581e2250e2eb2affe5cb.zip |
kernel-dbg: fix ramfs vs ramdisk and use devtmpfs and update
busybox/kernel version
Diffstat (limited to 'content/2019-10-27-kernel-debugging-qemu/run.sh')
-rwxr-xr-x | content/2019-10-27-kernel-debugging-qemu/run.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/2019-10-27-kernel-debugging-qemu/run.sh b/content/2019-10-27-kernel-debugging-qemu/run.sh index b0a84ae..b9548ad 100755 --- a/content/2019-10-27-kernel-debugging-qemu/run.sh +++ b/content/2019-10-27-kernel-debugging-qemu/run.sh @@ -1,6 +1,6 @@ #!/bin/bash -VER=5.13.2 +VER=6.6.2 # Launch the emulator with our kernel. qemu-system-x86_64 \ @@ -21,4 +21,5 @@ trap "kill $QEMU_PID" EXIT sleep 0.5 # Attach debugger to qemu and load the kernel symbols. -gdb -ex 'target remote :1234' ./linux-$VER/vmlinux +which cgdb >& /dev/null && GDB=cgdb || GDB=gdb +$GDB -ex 'target remote :1234' -ex 'set style enabled off' ./linux-$VER/vmlinux |