mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-21 01:00:48 +00:00
dbms: porting to aarch64 [#METR-19609].
This commit is contained in:
parent
27bb0a4ea2
commit
3b3dab716a
@ -232,8 +232,12 @@ private:
|
||||
|
||||
void * caller_address = nullptr;
|
||||
|
||||
#if defined(__x86_64__)
|
||||
/// Get the address at the time the signal was raised from the RIP (x86-64)
|
||||
caller_address = reinterpret_cast<void *>(context.uc_mcontext.gregs[REG_RIP]);
|
||||
#elif defined(__aarch64__)
|
||||
caller_address = reinterpret_cast<void *>(context.uc_mcontext.pc);
|
||||
#endif
|
||||
|
||||
static const int max_frames = 50;
|
||||
void * frames[max_frames];
|
||||
|
Loading…
Reference in New Issue
Block a user