mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
Everywhere: Move shared library checks into a common function
While we're at it, unify the various different conditions that are scattered accross the codebase.
This commit is contained in:
parent
31c634be5a
commit
80cb44afae
Notes:
sideshowbarker
2024-07-18 01:19:52 +09:00
Author: https://github.com/timschumi
Commit: 80cb44afae
Pull-request: https://github.com/SerenityOS/serenity/pull/10709
7 changed files with 25 additions and 6 deletions
|
@ -433,7 +433,7 @@ void DebugSession::update_loaded_libs()
|
|||
return IterationDecision::Continue;
|
||||
|
||||
String lib_name = object_path.value();
|
||||
if (lib_name.ends_with(".so"))
|
||||
if (Core::File::looks_like_shared_library(lib_name))
|
||||
lib_name = LexicalPath::basename(object_path.value());
|
||||
|
||||
FlatPtr base_address = entry.as_object().get("address").to_addr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue