VxWorks에서 프로그램이 돌다가 갑자기 Exception 어쩌고 하면서 task가 suspend되는
경우가 있다. 여러개의 task가 동시에 돌아가다 보니 어떤 task가 에러를 유발했는지
판단하기 어려울 때가 많았다. 이 때 lkAddr이라는 함수는 중요한 정보를 주었다.
아래는 원문 그대로 넣었다. 한마디로 말하면 Exception을 일으키는 함수를 찾아주거나
그 주변 함수를 찾아준다.
lkAddr will give you the symbol near the address.
Do lkAddr on the target shell after the exception.
Or you can do:
% cd <your BSP/project>
% nmppc --numeric-sort vxWorks > tmpfile
Open the tmpfile and find the symbol nearest
to 0x00133exx.
then set a break point at the beginning of the function you got from lkAddr or nmppc,
step into the code till an exception occur.