Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Microblaze simulator - Fix missing prototype
@ 2012-05-08 13:16 Joel Sherrill
  2012-05-08 13:37 ` Mark Kettenis
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joel Sherrill @ 2012-05-08 13:16 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 648 bytes --]

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



[-- Attachment #2: gdb-mblaze.diff --]
[-- Type: text/x-patch, Size: 702 bytes --]

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
 	;;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-05-15 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <4FA82F46.4080901@oarcorp.com>
2012-05-08  5:21 ` Microblaze simulator - Fix missing prototype Sergio Durigan Junior
2012-05-08 14:07   ` Joel Sherrill
2012-05-08 13:16 Joel Sherrill
2012-05-08 13:37 ` Mark Kettenis
2012-05-08 13:53 ` Sergio Durigan Junior
2012-05-15 13:30 ` Michael Eager

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox