linux kernel debug in qemu with gdb

Rongwei Wang <[email protected]> Wed, 24 Jan 2018 02:25:27 +0800
Newsgroups org.kernel.vger.linux-newbie
Message-ID <CAKqmuHk17oJE+H5P3fOCDvMax7QEMNZL7VjO13mJqnD5d34_9Q@mail.gmail.com>
Hi
     i am a newbie, i just want debug linux kernel(x86_64), and i make
configure with x86_64_deconfig, then configure with debuginfo by make
menuconfig.
 this is my step below:
1.qemu-system-x86_64 -s -S -kernel ../staging/arch/x86_64/boot/bzImage -m 1024
2.gdb --tui vmlinux(in staging)
3.target remote localhost:1234
4.b start_kernel
5.c
but, when i input this 'c' , the system will run until kernel panic,
not stop in start_kernel, could you please give me some idea?

Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs