Build-failure from [PATCH] Support for Xilinx MicroBlaze

Pierre Muller muller@ics.u-strasbg.fr
Fri Oct 16 07:53:00 GMT 2009


  Linux vadmin 2.6.28-15-server #52-Ubuntu SMP Wed Sep 9 11:50:50 UTC 2009 i686 GNU/Linux
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3

  configured with --enable-targets=all
I get this new build failure:


gcc -g -O2   -I. -I../../src/gdb -I../../src/gdb/common -I../../src/gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../src/gdb/../include/opcode -I../../src/gdb/../readline/.. -I../bfd -I../../src/gdb/../bfd -I../../src/gdb/../include -I../libdecnumber -I../../src/gdb/../libdecnumber  -I../../src/gdb/gnulib -Ignulib  -DMI_OUT=1 -DTUI=1  -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral -Wno-pointer-sign -Wno-unused -Wunused-value -Wno-switch -Wno-char-subscripts -Werror -c -o microblaze-linux-tdep.o -MT microblaze-linux-tdep.o -MMD -MP -MF .deps/microblaze-linux-tdep.Tpo ../../src/gdb/microblaze-linux-tdep.c
../../src/gdb/microblaze-linux-tdep.c: In function 'microblaze_linux_memory_remove_breakpoint':
../../src/gdb/microblaze-linux-tdep.c:50: error: 'gdbarch' undeclared (first use in this function)
../../src/gdb/microblaze-linux-tdep.c:50: error: (Each undeclared identifier is reported only once
../../src/gdb/microblaze-linux-tdep.c:50: error: for each function it appears in.)
../../src/gdb/microblaze-linux-tdep.c: In function 'microblaze_linux_sigtramp_cache':
../../src/gdb/microblaze-linux-tdep.c:77: error: 'SP_REGNUM' undeclared (first use in this function)
cc1: warnings being treated as errors
../../src/gdb/microblaze-linux-tdep.c:78: error: implicit declaration of function 'frame_pc_unwind'
../../src/gdb/microblaze-linux-tdep.c:89: error: 'MICROBLAZE_REGISTER_SIZE' undeclared (first use in this function)
../../src/gdb/microblaze-linux-tdep.c: In function 'microblaze_linux_init_abi':
../../src/gdb/microblaze-linux-tdep.c:126: error: passing argument 2 of 'set_gdbarch_memory_remove_breakpoint' from incompatible pointer type
make[1]: *** [microblaze-linux-tdep.o] Error 1
make[1]: Leaving directory `/usr/local/src/gdbcvs/build-mult/gdb'
make: *** [all-gdb] Error 2


  Which seems to be realted to the commit
to support microblaze architechture.

  Could someone try to fix this?


Pierre Muller
Pascal language support maintainer for GDB





More information about the Gdb-patches mailing list