mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
LibCoredump+CrashReporter: Make CrashReporter work on AArch64
This commit implements printing out the AArch64 register file and generating backtraces. Tested to work on the sshd port.
This commit is contained in:
parent
ed13b7beb6
commit
ff2fa72e28
2 changed files with 11 additions and 5 deletions
|
@ -48,9 +48,8 @@ Backtrace::Backtrace(Reader const& coredump, const ELF::Core::ThreadInfo& thread
|
|||
auto start_bp = m_thread_info.regs.rbp;
|
||||
auto start_ip = m_thread_info.regs.rip;
|
||||
#elif ARCH(AARCH64)
|
||||
auto start_bp = 0;
|
||||
auto start_ip = 0;
|
||||
TODO_AARCH64();
|
||||
auto start_bp = m_thread_info.regs.x[29];
|
||||
auto start_ip = m_thread_info.regs.pc;
|
||||
#else
|
||||
# error Unknown architecture
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue