도와주세요!!
글 수 15,339
2007.05.03 13:28:46 (*.126.183.43)
6675
강좌 > 개발환경구축> [GCC 3.2 지원] 툴체인 소스패케지 크로스 컴파일 환경 구성하기
여기에 나와있는 gdb5.3으로 환경설정을 하였는데
gdb는 제대로 설치가 되었습니다.
필요한것은 gdbserver인데 크로스 컴파일 환경에서 사용하길 원합니다.
그런데 gdbserver설치시에 에러가 발생합니다.
혹시 도와주실분 계신지요..
와우리눅스 7.3 EZ-X5보드에서 디버깅하려고 합니다.
에러 메세지는 아래와같습니다.
---------------------------------------------------------------------------------------------------------------------------------------
[root@localhost gdbserver]# make
gcc -c -g -O2 -I. -I/usr/local/src/gdb-5.3/gdb -I/usr/local/src/gdb-5.3/gdb/config -DLOCALEDIR=""/usr/local/share/localec
In file included from /usr/local/src/gdb-5.3/gdb/linux-proc.c:31:
/usr/local/src/gdb-5.3/gdb/gregset.h:32: parse error before `gdb_gregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:32: warning: type defaults to `int' in declaration of `gdb_gregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:32: warning: data definition has no type or storage class
/usr/local/src/gdb-5.3/gdb/gregset.h:33: parse error before `gdb_fpregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:33: warning: type defaults to `int' in declaration of `gdb_fpregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:33: warning: data definition has no type or storage class
/usr/local/src/gdb-5.3/gdb/gregset.h:45: parse error before `*'
/usr/local/src/gdb-5.3/gdb/gregset.h:46: parse error before `*'
/usr/local/src/gdb-5.3/gdb/gregset.h:52: parse error before `*'
/usr/local/src/gdb-5.3/gdb/gregset.h:53: parse error before `*'
/usr/local/src/gdb-5.3/gdb/linux-proc.c: In function `linux_do_thread_registers':
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: `gdb_gregset_t' undeclared (first use in this function)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: (Each undeclared identifier is reported only once
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: for each function it appears in.)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: parse error before `gregs'
/usr/local/src/gdb-5.3/gdb/linux-proc.c:176: `gdb_fpregset_t' undeclared (first use in this function)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:182: `gregs' undeclared (first use in this function)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:190: `fpregs' undeclared (first use in this function)
make: *** [linux-proc.o] 오류 1
여기에 나와있는 gdb5.3으로 환경설정을 하였는데
gdb는 제대로 설치가 되었습니다.
필요한것은 gdbserver인데 크로스 컴파일 환경에서 사용하길 원합니다.
그런데 gdbserver설치시에 에러가 발생합니다.
혹시 도와주실분 계신지요..
와우리눅스 7.3 EZ-X5보드에서 디버깅하려고 합니다.
에러 메세지는 아래와같습니다.
---------------------------------------------------------------------------------------------------------------------------------------
[root@localhost gdbserver]# make
gcc -c -g -O2 -I. -I/usr/local/src/gdb-5.3/gdb -I/usr/local/src/gdb-5.3/gdb/config -DLOCALEDIR=""/usr/local/share/localec
In file included from /usr/local/src/gdb-5.3/gdb/linux-proc.c:31:
/usr/local/src/gdb-5.3/gdb/gregset.h:32: parse error before `gdb_gregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:32: warning: type defaults to `int' in declaration of `gdb_gregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:32: warning: data definition has no type or storage class
/usr/local/src/gdb-5.3/gdb/gregset.h:33: parse error before `gdb_fpregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:33: warning: type defaults to `int' in declaration of `gdb_fpregset_t'
/usr/local/src/gdb-5.3/gdb/gregset.h:33: warning: data definition has no type or storage class
/usr/local/src/gdb-5.3/gdb/gregset.h:45: parse error before `*'
/usr/local/src/gdb-5.3/gdb/gregset.h:46: parse error before `*'
/usr/local/src/gdb-5.3/gdb/gregset.h:52: parse error before `*'
/usr/local/src/gdb-5.3/gdb/gregset.h:53: parse error before `*'
/usr/local/src/gdb-5.3/gdb/linux-proc.c: In function `linux_do_thread_registers':
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: `gdb_gregset_t' undeclared (first use in this function)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: (Each undeclared identifier is reported only once
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: for each function it appears in.)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:175: parse error before `gregs'
/usr/local/src/gdb-5.3/gdb/linux-proc.c:176: `gdb_fpregset_t' undeclared (first use in this function)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:182: `gregs' undeclared (first use in this function)
/usr/local/src/gdb-5.3/gdb/linux-proc.c:190: `fpregs' undeclared (first use in this function)
make: *** [linux-proc.o] 오류 1