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)
Sun, Apr 14, 8:13 PM
Unknown Object (File)
Sun, Apr 14, 5:46 PM
Unknown Object (File)
Sun, Apr 14, 5:45 PM
Unknown Object (File)
Sun, Apr 14, 5:42 PM
Unknown Object (File)
Mar 9 2024, 9:15 AM
Unknown Object (File)
Mar 9 2024, 9:15 AM
Unknown Object (File)
Mar 9 2024, 5:00 AM
Unknown Object (File)
Mar 7 2024, 9:35 PM
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.