Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149198138
D39939.1789657534.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
895 B
Referenced Files
None
Subscribers
None
D39939.1789657534.diff
View Options
Index: contrib/llvm-project/lldb/source/Plugins/Process/FreeBSDKernel/ProcessFreeBSDKernel.cpp
===================================================================
--- contrib/llvm-project/lldb/source/Plugins/Process/FreeBSDKernel/ProcessFreeBSDKernel.cpp
+++ contrib/llvm-project/lldb/source/Plugins/Process/FreeBSDKernel/ProcessFreeBSDKernel.cpp
@@ -178,6 +178,12 @@
int32_t pcbsize =
ReadSignedIntegerFromMemory(FindSymbol("pcb_size"), 4, -1, error);
lldb::addr_t stoppcbs = FindSymbol("stoppcbs");
+ // XXX update version
+ // After __FreeBSD_version__ 1400088 stoppcbs is a pointer to the array.
+ int32_t osreldate =
+ ReadSignedIntegerFromMemory(FindSymbol("osreldate"), 4, -1, error);
+ if (osreldate > 1400088)
+ stoppcbs = ReadPointerFromMemory(stoppcbs, error);
// from FreeBSD sys/param.h
constexpr size_t fbsd_maxcomlen = 19;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 17, 3:05 PM (7 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29734175
Default Alt Text
D39939.1789657534.diff (895 B)
Attached To
Mode
D39939: lldb: dereference stoppcbs based on target kernel version
Attached
Detach File
Event Timeline
Log In to Comment