linux 2.6.10 - compile kgdb fails
Hi,
I am trying to build a 2.6.10 kernel with kgdb (Montavista for ppc). I am getting the following error:
ppc_7xx-gcc -m32 -Wp,-MD,arch/ppc/kernel/.kgdb.o.d -nostdinc -iwithprefix incl
ude -D__KERNEL__ -Iinclude -Iarch/ppc -Wall -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -fno-common -O2 -fomit-frame-pointer -g -Iarch/ppc -mso
ft-float -pipe -ffixed-r2 -mmultiple -mstring -Wa,-maltivec -Wdeclaration-after-
statement -g -gdwarf-2 -DKBUILD_BASENAME=kgdb -DKBUILD_MODNAME=kgdb -c -o arch
/ppc/kernel/kgdb.o arch/ppc/kernel/kgdb.c
arch/ppc/kernel/kgdb.c: In function `kgdb_debugger':
arch/ppc/kernel/kgdb.c:90: warning: implicit declaration of function `kgdb_handl
e_exception'
arch/ppc/kernel/kgdb.c: In function `kgdb_breakpoint':
arch/ppc/kernel/kgdb.c:100: error: `kgdb_setting_breakpoint' undeclared (first u
se in this function)
arch/ppc/kernel/kgdb.c:100: error: (Each undeclared identifier is reported only
once
arch/ppc/kernel/kgdb.c:100: error: for each function it appears in.)
arch/ppc/kernel/kgdb.c: In function `kgdb_arch_handle_exception':
arch/ppc/kernel/kgdb.c:244: warning: implicit declaration of function `kgdb_hex2
long'
arch/ppc/kernel/kgdb.c:256: error: `debugger_step' undeclared (first use in this
function)
arch/ppc/kernel/kgdb.c:257: error: `kgdb_contthread' undeclared (first use in th
is function)
arch/ppc/kernel/kgdb.c: At top level:
arch/ppc/kernel/kgdb.c:270: error: variable `arch_kgdb_ops' has initializer but
incomplete type
arch/ppc/kernel/kgdb.c:272: error: unknown field `gdb_bpt_instr' specified in in
itializer
arch/ppc/kernel/kgdb.c:272: error: extra brace group at end of initializer
arch/ppc/kernel/kgdb.c:272: error: (near initialization for `arch_kgdb_ops')
arch/ppc/kernel/kgdb.c:272: warning: excess elements in struct initializer
arch/ppc/kernel/kgdb.c:272: warning: (near initialization for `arch_kgdb_ops')
arch/ppc/kernel/kgdb.c:270: error: storage size of `arch_kgdb_ops' isn't known
make[1]: *** [arch/ppc/kernel/kgdb.o] Error 1
make: *** [arch/ppc/kernel] Error 2
Any idea on a possible solution ?
Thanks,
Dan Sirbu
|