gdb *.fcgi 디버깅 방법
안녕하세요
얼마전에 gdb 사용법을 잘 몰라 도움을 얻고 간 사람입니다.
그런데 이번에 또 막히는 부분이 있어서 이렇게 또 여쭈어 봅니다.
다름이 아니라 실행파일이 fastcgi인 *.fcgi파일인데요 이 실행파일을
디버깅을 하려고 하는데 잘 안되네요.
브레이크를 걸어도 프로그램이 그냥 run 되고 끝나버리네요.
[root@as01 /usr/local/adsystem/apache2059/htdocs/fastcgi]# gdb adcheck.fcgi
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "i386-marcel-freebsd"...
(gdb) b 140
Breakpoint 1 at 0x8049921: file adcheck.c, line 140.
(gdb) run
Starting program: /usr/local/adsystem/apache2059/htdocs/fastcgi/adcheck.fcgi
Set-Cookie: uidi=20070602143227155da; path=/; expires=Tuesday, 1-Dec-9999 00:00:00 GMT
Set-Cookie: uid=2007060214322715569; path=/; expires=Tuesday, 1-Dec-9999 00:00:00 GMT
Set-Cookie: adinfo=00000530020070602143227000000000000000101010101000000|; path=/; expires=Tuesday, 1-Dec-9999 00:00:00 GMT
Set-Cookie: slinfo=0000053001000|; path=/; expires=Tuesday, 1-Dec-9999 00:00:00 GMT
Set-Cookie: cpinfo=0000001000|; path=/; expires=Tuesday, 1-Dec-9999 00:00:00 GMT
X-uidi: 20070602143227155da
X-uid: 2007060214322715569
X-campaignCode: 0000
X-slotCode: 053
X-adId: 00
X-ccCnt: 1
X-scCnt: 1
X-acCnt: 1
X-adCnt: 1
X-ahCnt: 1
X-r2: 0
Content-length: 198
Content-type: text/html
ClickUrl: www.naver.com 59 15
Program exited normally.
(gdb)
어떤 별도의 설정을 해줘야 하는건지 몰라서 질문 드립니다.
댓글 달기