[Lldb-commits] [lldb] [lldb][FreeBSDKernel] Fix missing num_load_section increment (PR #224842)
Minsoo Choo via lldb-commits
lldb-commits at lists.llvm.org
Sat Sep 19 08:56:49 PDT 2026
https://github.com/mchoo7 created https://github.com/llvm/llvm-project/pull/224842
num_load_section should increment when section load address is set by a fixed slide.
>From 8aa19f85845287338041e7be1f33d2f9b0da1e16 Mon Sep 17 00:00:00 2001
From: Minsoo Choo <minsoo at minsoo.io>
Date: Sat, 19 Sep 2026 11:48:57 -0400
Subject: [PATCH] [lldb][FreeBSDKernel] Fix missing num_load_section increment
---
.../DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp b/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp
index ffda99cfcc736..56a22d7e57b69 100644
--- a/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp
+++ b/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp
@@ -459,6 +459,7 @@ bool DynamicLoaderFreeBSDKernel::KModImageInfo::LoadImageUsingMemoryModule(
target.SetSectionLoadAddress(on_disk_section_sp,
on_disk_section_sp->GetFileAddress() +
fixed_slide);
+ ++num_load_sections;
} else {
const Section *memory_section =
More information about the lldb-commits
mailing list