HP-UX
1752292 회원
5107 온라인
108786 솔루션
새 메시지

HP-UX 11에서 gdb 에러 메세지 (File format not recognized)

 
조성근
비정기 기여자

HP-UX 11에서 gdb 에러 메세지 (File format not recognized)

회사에서 HP-UX11 장비를 사용해서 개발를 하고 있습니다.

마땅한 debug tool을 몰라서 gnu gdb를 사용할려고 소스를 컴파일해서 사용하는데 core 파일을 디버깅하면

hahlr@hahlr1:/home/hahlr/HAHLRMP_R0.9.9/src/OAM/startMP:343 % gdb ./startMP_r ./core

GNU gdb 6.4

Copyright 2005 Free Software Foundation, Inc.

GDB is free software, covered by the GNU General Public License, and you are

welcome to change it and/or distribute copies of it under certain conditions.

Type "show copying" to see the conditions.

There is absolutely no warranty for GDB. Type "show warranty" for details.

This GDB was configured as "hppa2.0w-hp-hpux11.11"..."/home/hahlr/HAHLRMP_R0.9.9/src/OAM/startMP/startMP_r": not in executable format: File format not recognized



"/home/hahlr/HAHLRMP_R0.9.9/src/OAM/startMP/./core" is not a core dump: File format not recognized

이런식으로 에러를 출력합니다.

파일 모드를 변경해보기도 했는데 결과는 똑같습니다.

왜 이런 에러가 뜨는지 알수 있을까요.

현재 64bit로 사용하고 있고 make는 gmake를 사용하고 있습니다.
1 응답 1
이태곤
중학생

HP-UX 11에서 gdb 에러 메세지 (File format not recognized)

안녕하십니까



전 프로그램하는 것이랑 거리가 먼 사람인데 ..^^



일단 gdb을 사용하기위해서는 아래와 같은 것들이 필요합니다.



Build-time dependencies: bison flex gcc make

Run-time dependencies: bison flex libgcc make



이런것들을 먼저 설치하시고 해보십시오.



요즘 서버에는 /opt/langtools/bin 아래에 gdb랑 wdb 다 설치되어 있습니다.

HP에서는 주로 wdb 사용하는것 같더라고요.



혹시 /opt/langtools/bin 아래에 없다면



http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,1662,00.html 여기에서 다운 받으시면 됩니다.



그리고 개발툴 관련은 www.hp.com/dspp 을 참조하십시오



그럼 좋은하루되십시오