"This is your last chance. After this, there is no turning back. You take the blue pill - the story ends, you wake up in your bed and believe whatever you want to believe. You take the red pill - you stay in Wonderland, and I show you how deep the rabbit hole goes."
2014년 4월 25일 금요일
GCC 4.8 + GDB 7.4 환경에서 QtCreator Debug 모드의 변수 값이 보이지 않을 때 해결방법
해결책 : cmake 인자에 다음을 추가하여 컴파일시 디버깅 정보 포멧을 dwarf-3를 사용하도록 설정
-DCMAKE_CXX_FLAGS="-gdwarf-3"
원인 : gcc 4.8 에서 사용하는 디버깅 정보 포멧과 gdb 7.4 이하에서 사용하는 포멧이 달라서 디버깅 정보를 인식하지 못함. gdb를 7.5 이상으로 쓰는 것도 하나의 방법임.
댓글 없음:
댓글 쓰기