Page MenuHomeFreeBSD

lldb: dereference stoppcbs based on target kernel version
ClosedPublic

Authored by emaste on May 2 2023, 8:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 6:06 PM
Unknown Object (File)
Tue, Oct 22, 9:09 AM
Unknown Object (File)
Tue, Oct 22, 9:09 AM
Unknown Object (File)
Tue, Oct 22, 9:09 AM
Unknown Object (File)
Tue, Oct 22, 9:09 AM
Unknown Object (File)
Sat, Oct 19, 10:24 PM
Unknown Object (File)
Wed, Oct 16, 2:33 PM
Unknown Object (File)
Oct 10 2024, 2:52 AM
Subscribers

Details

Summary
As of [some hash] / __FreeBSD_version [some version]  stoppcbs is a
pointer to the array.  Check the target osreldate and if the kernel is
sufficiently new dereference stoppcbs.

Xref D39806. This change is not yet tested, posting for discussion.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emaste requested review of this revision.May 2 2023, 8:28 PM
emaste created this revision.
contrib/llvm-project/lldb/source/Plugins/Process/FreeBSDKernel/ProcessFreeBSDKernel.cpp
185

Perhaps (stoppcbs != LLDB_INVALID_ADDRESS && osreldate > 1400088)

This revision is now accepted and ready to land.May 3 2023, 1:50 PM

Drop XXX comment, add stoppcbs != LLDB_INVALID_ADDRESS to condition.

This revision now requires review to proceed.May 3 2023, 4:48 PM
This revision was not accepted when it landed; it landed in state Needs Review.May 26 2023, 1:50 AM
This revision was automatically updated to reflect the committed changes.