mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:07:36 +00:00
Everywhere: Make the codebase more architecture aware
This commit is contained in:
parent
6c4b5775e1
commit
97cc33ca47
22 changed files with 108 additions and 36 deletions
|
@ -47,9 +47,11 @@ Backtrace::Backtrace(Reader const& coredump, const ELF::Core::ThreadInfo& thread
|
|||
#if ARCH(I386)
|
||||
auto start_bp = m_thread_info.regs.ebp;
|
||||
auto start_ip = m_thread_info.regs.eip;
|
||||
#else
|
||||
#elif ARCH(X86_64)
|
||||
auto start_bp = m_thread_info.regs.rbp;
|
||||
auto start_ip = m_thread_info.regs.rip;
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
||||
// In order to provide progress updates, we first have to walk the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue