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, Apr 27, 1:35 AM
Unknown Object (File)
Sat, Apr 27, 1:35 AM
Unknown Object (File)
Sat, Apr 27, 1:35 AM
Unknown Object (File)
Sat, Apr 27, 12:33 AM
Unknown Object (File)
Fri, Apr 26, 10:34 PM
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
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

Lint
Lint Skipped
Unit
Tests Skipped

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.