qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: breakpoints don't work for kernel debugging with qemu and gdb


From: Manfred Haertel, DB3HM
Subject: Re: breakpoints don't work for kernel debugging with qemu and gdb
Date: Thu, 18 Feb 2021 16:04:08 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.5.1

Saket Sinha schrieb:

I think the problem is KALSR. You have to disable it
disabling the kernel option "Randomize the address of the kernel image (KASLR)", inside Processor type and features. In this way, gdb can translate all the symbols correctly.

The easiest way to disable KASLR is to start the kernel with the option nokaslr (simply add nokaslr to the kernel command line in grub or any other boot manager).

--
Manfred Härtel, DB3HM    mailto:Manfred.Haertel@rz-online.de
                         http://rz-home.de/mhaertel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]