mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 04:22:28 +00:00
LibCoredump: Accept dynamic libraries with versioned names
Our Clang toolchain uses versioned names for its shared libraries, meaning that our applications link against `libc++.so.1.0`, not simply `libc++.so`. Without this change, the LLVM runtime libraries are excluded from backtraces, which makes debugging toolchain issues harder.
This commit is contained in:
parent
9869b598d5
commit
1b63c8f3b0
Notes:
sideshowbarker
2024-07-18 02:15:13 +09:00
Author: https://github.com/BertalanD
Commit: 1b63c8f3b0
Pull-request: https://github.com/SerenityOS/serenity/pull/9378
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/itamar8910
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/nico
Reviewed-by: https://github.com/timschumi
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ namespace Coredump {
|
|||
ELFObjectInfo const* Backtrace::object_info_for_region(ELF::Core::MemoryRegionInfo const& region)
|
||||
{
|
||||
auto path = region.object_name();
|
||||
if (!path.starts_with('/') && path.ends_with(".so"sv))
|
||||
if (!path.starts_with('/') && (path.ends_with(".so"sv) || path.contains(".so."sv)))
|
||||
path = LexicalPath::join("/usr/lib", path).string();
|
||||
|
||||
auto maybe_ptr = m_debug_info_cache.get(path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue