[lldb-dev] Adding support for FreeBSD kernel coredumps (and live memory lookup)

Pavel Labath via lldb-dev lldb-dev at lists.llvm.org
Tue Dec 14 07:58:11 PST 2021


On 10/12/2021 11:12, Michał Górny wrote:
> On Mon, 2021-12-06 at 14:28 +0100, Pavel Labath wrote:
>> The live kernel debugging sounds... scary. Can you explain how would
>> this actually work? Like, what would be the supported operations? I
>> presume you won't be able to actually "stop" the kernel, but what will
>> you actually be able to do?
>>
> 
> Yes, it is scary.  No, the system doesn't stop -- it's just a racy way
> to read and write kernel memory.  I don't think it's used often but I've
> been told that sometimes it can be very helpful in debugging annoying
> non-crash bugs, especially if they're hard to reproduce.
> 

Interesting.

So how would this be represented in lldb? Would there be any threads, 
registers? Just a process with a bunch of modules ?

pl


More information about the lldb-dev mailing list