gdb에서 process attach 후 디버깅이 되지 않습니다.
1. debugging 화면
(gdb) attach 1840
Attaching to program: /home/lsfadm/client/cli, process 1840
warning: reading `r3' register: 데이터가 없습니다.
0xc020da10 in ()
(gdb) where
#0 0xc020da10 in ()
warning: Attempting to unwind past bad PC 0xc020da10
#1 0xc0219a7c in ()
#2 0xc0219a7c in ()
2. Process 정보 화면
lsfadm 19525 1840 0 17:35:03 pts/tm 0:00 cli 127.0.0.1
3. H/W, OS 정보 화면
HP gdb 5.2 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
and target hppa1.1-hp-hpux11.00.
4. gdb 버전 정보 화면
HP gdb 5.2 for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00
and target hppa1.1-hp-hpux11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.2 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
위와 같은 환경에서 r3 register 데이타가 없다고 하더니 디버깅 정보를 전혀 알수가 없습니다.
물론 process는 존재하고 물론 -g 옵션을 썼고 같은 디렉토리에 실행파일이 있습니다.
이상한 것은 어떤 process는 debugging 정보를 볼수 있고 어떤 process는 볼수 없습니다.
왜 이런 일이 벌어졌을까요? 뭐가 문제일까요?
아시는 분은 리플 달아주시면 고맙겠습니다.
댓글 달기