Logging: remove const from the lambda calling dladdr
In some OSes, the function takes a plain void*. Pick-to: 6.4 Fixes: QTBUG-106980 Change-Id: I810d70e579eb4e2c8e45fffd1718bdaf94d8ac0e Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
parent
7fea2d34fb
commit
7d7d4671bd
@ -1332,7 +1332,7 @@ static QStringList backtraceFramesForLogMessage(int frameCount)
|
||||
// use dladdr() instead of backtrace_symbols()
|
||||
QString cachedLibrary;
|
||||
const char *cachedFname = nullptr;
|
||||
auto decodeFrame = [&](const void *addr) -> DecodedFrame {
|
||||
auto decodeFrame = [&](void *addr) -> DecodedFrame {
|
||||
Dl_info info;
|
||||
if (!dladdr(addr, &info))
|
||||
return {};
|
||||
|
Loading…
x
Reference in New Issue
Block a user