Updated:

less than 1 minute read

실행

  • 코어 파일
    • gdb ${binary} ${core}
  • 바이너리
    • gdb --args ${binary} -s -b arg
    • 자식 프로세스가 수행되는 경우
      • set follow-fork-mode child
    • b ${function}
    • run


스택 정보

  • bt
  • 프레임 단위
    • 종료되지 않은 함수 단위


프레임 선택

  • f ${n}


인자 정보

  • info arg


로컬 변수 정보

  • info local


쓰레드 정보

  • info thread

Tags:

Categories:

Updated: