[Lldb-commits] [lldb] [lldb][FreeBSD] Add dynamic loader handle class for FreeBSD Kernel (PR #67106)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 4 03:47:23 PDT 2023
DavidSpickett wrote:
FYI on our Windows on Arm (aka AArch64) bot we got this warning:
```
[4840/6117] Building CXX object tools\lldb\source\Plugins\DynamicLoader\FreeBSD-Kernel\CMakeFiles\lldbPluginDynamicLoaderFreeBSDKernel.dir\DynamicLoaderFreeBSDKernel.cpp.obj
C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\source\Plugins\DynamicLoader\FreeBSD-Kernel\DynamicLoaderFreeBSDKernel.cpp(540,7): warning: format specifies type 'unsigned long' but the argument has type 'std::vector<DynamicLoaderFreeBSDKernel::KModImageInfo>::size_type' (aka 'unsigned long long') [-Wformat]
linker_files_list.size());
^~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\include\lldb/Utility/Log.h(353,48): note: expanded from macro 'LLDB_LOGF'
log_private->Formatf(__FILE__, __func__, __VA_ARGS__); \
^~~~~~~~~~~
1 warning generated.
```
And this one on the 32 bit Arm Linux bot:
```
../llvm-project/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp:540:7: warning: format specifies type 'unsigned long' but the argument has type 'size_type' (aka 'unsigned int') [-Wformat]
1 warning generated.
```
AArch64 Linux was fine. So I assume each one is using one of `unsigned int`, `unsigned long` or `unsigned long long` for its size types.
There is probably a way to print that in a portable way but I don't recall it at the moment.
https://github.com/llvm/llvm-project/pull/67106
More information about the lldb-commits
mailing list