This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Microblaze simulator - Fix missing prototype
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 8 May 2012 08:15:34 -0500
- Subject: Microblaze simulator - Fix missing prototype
Without this patch, the Microblaze simulator generates
a missing prototype warning which is treated as an error.
I don't see this routine referenced elsewhere, so there is
the possibility that it also could be made static. But
it definitely needs a prototype to build.
OK to apply?
2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* microblaze-rom.c (_initialize_picobug_rom): Add prototype.
--
Joel Sherrill, Ph.D. Director of Research& Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985
Index: gdb/configure.tgt
===================================================================
RCS file: /cvs/src/src/gdb/configure.tgt,v
retrieving revision 1.253
diff -u -r1.253 configure.tgt
--- gdb/configure.tgt 24 Apr 2012 03:33:16 -0000 1.253
+++ gdb/configure.tgt 7 May 2012 20:15:54 -0000
@@ -331,8 +331,8 @@
monitor.o dsrec.o solib-svr4.o symfile-mem.o linux-tdep.o"
gdb_sim=../sim/microblaze/libsim.a
;;
-microblaze*-*-*)
- # Target: Xilinx MicroBlaze running standalone
+microblaze*-*-* | microblaze*-*-rtems*)
+ # Target: Xilinx MicroBlaze running standalone (or RTEMS)
gdb_target_obs="microblaze-tdep.o microblaze-rom.o monitor.o dsrec.o"
gdb_sim=../sim/microblaze/libsim.a
;;