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)
Sat, Dec 7, 7:44 AM
Unknown Object (File)
Sat, Dec 7, 5:22 AM
Unknown Object (File)
Thu, Dec 5, 7:49 AM
Unknown Object (File)
Tue, Dec 3, 10:02 PM
Unknown Object (File)
Fri, Nov 29, 4:41 AM
Unknown Object (File)
Fri, Nov 29, 4:41 AM
Unknown Object (File)
Fri, Nov 29, 4:40 AM
Unknown Object (File)
Fri, Nov 29, 4:40 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.