mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
Everywhere: Make the codebase more architecture aware
This commit is contained in:
parent
6c4b5775e1
commit
97cc33ca47
Notes:
sideshowbarker
2024-07-17 08:37:36 +09:00
Author: https://github.com/cqundefine
Commit: 97cc33ca47
Pull-request: https://github.com/SerenityOS/serenity/pull/14651
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/linusg
22 changed files with 108 additions and 36 deletions
|
@ -169,8 +169,10 @@ NonnullOwnPtrVector<DebugInfo::VariableInfo> DebugInfo::get_variables_in_current
|
|||
FlatPtr ip;
|
||||
#if ARCH(I386)
|
||||
ip = regs.eip;
|
||||
#else
|
||||
#elif ARCH(X86_64)
|
||||
ip = regs.rip;
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
if (ip - m_base_address < scope.address_low || ip - m_base_address >= scope.address_high)
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue