how to cross-compile gdb for arm?

yang xiaoli
2005-11-28T08:51:06Z

[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 738 bytes --]

I'll corss-compile gdb for arm board, will use gdb to debug on arm board.
I use gdb6.0 or gdb6.3 and configure with:
CC=arm-linux-gcc ../gdb-6.3/configure --target=arm-linux \
--build=arm-linux --host=arm-linux

and has error when make:
checking whether make sets $(MAKE)... (cached) yes
checking for arm-linux-gcc ...(cached) arm-linux-gcc
checking for c Compiler default output in a.out
checking whether the c compiler makes in
configure:error: cannot run c compiled programs

if you meant to cross compile usr "--host"
see 'config.log' for more details

I don't know how to do with it ,something wrong?

_________________________________________________________________
Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn