|
From: | 泰宇周 |
Subject: | Is it qemu support gdb non-stop mode? |
Date: | Fri, 1 Dec 2023 20:15:54 +0800 |
Hi folks, I am using qemu and gdb to debug the Linux kernel. I wanted to stop one thread while letting other threads continue running. I found that there is a command called non-stop in gdb which can help me achieve my goal. The details of non-stop mode in gdb are shown in https://sourceware.org/gdb/current/onlinedocs/gdb.html/Non_002dStop-Mode.html Here is my command to run qemu with the kernel image: sudo qemu-system-x86_64 -smp 4 -m 8G On another terminal, I run "gdb vmlinux". Then I followed what the tutorial said to enable non-stop mode: It seems that qemu does not support non-stop mode. Do I need to do something extra to enable non-stop mode in gdb and qemu? If it is not supported, how could I stop one thread while letting other threads continue running in gdb ? |
[Prev in Thread] | Current Thread | [Next in Thread] |