gdb 사용시 같은 열이 여러번 나올때 도와주세요

김수영의 이미지

gdb 초보 입니다.

gdb를 실행시키면 아래처럼 나옵니다.

1.....................................

Quote:
Error while running hook_stop: Invalid type combination in ordering comparison.

라고 나오는 거지요?

아주단순하게 hello,world를 찍는 프로그램을 임시로 만들어서 돌려도 저렇게 나옵니다.

그리고 n 누르면 한 statement씩 실행하는 게 아닌가요?

이건 이건 꼭 한 바이트 단위로 실행시키는 거 같습니다.

2..............................................

왜 이렇게 여러번 나오는 걸까요?

실행환경 리눅스, putty에서
------------------------------------------------------------------------------------

Error while running hook_stop:
Invalid type combination in ordering comparison.
74          makeTable(MN);
gdb>
Error while running hook_stop:
Invalid type combination in ordering comparison.
0x0804871e      74          makeTable(MN);
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
75          makeTable(OP);
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
0x0804872a      75          makeTable(OP);
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
81              printf("Sicsim>");
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
0x08048736      81              printf("Sicsim>");
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
82              fflush(stdin);
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
0x08048740      82              fflush(stdin);
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
0x08048743      82              fflush(stdin);
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
83              fgets(buf,MAXLEN,stdin);
cinsk의 이미지

현재 디렉토리나 $HOME 디렉토리에 있는 .gdbinit을 지우고 시작하기 바랍니다.

--
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://www.cinsk.org/cfaqs/

김수영의 이미지

감사합니다.

복 받으실꺼예요~