Linux API/linux

segfault시 calltree 출력하기

구차니 2022. 11. 28. 21:29

arm64(i.mx8) 에서는 

caller_address = (void *) uc->uc_mcontext.arm_pc;

대신

caller_address = (void *) uc->uc_mcontext.pc; 로 하니 빌드가 된다.

 

[링크 : https://snowdeer.github.io/c++/2017/08/30/segmentation-fault-call-stack/]

저작자표시 (새창열림)