Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH]  build powerpc sim for mingw host
@ 2008-02-08 23:05 Dave Murphy
  2008-02-13 23:39 ` Joel Brobecker
  2008-02-14  0:42 ` Daniel Jacobowitz
  0 siblings, 2 replies; 4+ messages in thread
From: Dave Murphy @ 2008-02-08 23:05 UTC (permalink / raw)
  To: gdb-patches

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

Just a quick fix to allow building a powerpc gdb for mingw host.

I have an FSF assignment for gdb [MURPHY RT 338278] on file but this is 
just a small change.

Dave

[-- Attachment #2: table.c.patch --]
[-- Type: text/plain, Size: 656 bytes --]

2008-02-07  Dave Murphy  <davem@devkitpro.org>

	* table.c (table_push) : correct file read under mingw as well as cygwin


Index: sim/ppc/table.c
===================================================================
RCS file: /cvs/src/src/sim/ppc/table.c,v
retrieving revision 1.2
diff -u -r1.2 table.c
--- sim/ppc/table.c	12 Jan 2002 10:21:12 -0000	1.2
+++ sim/ppc/table.c	6 Feb 2008 05:07:41 -0000
@@ -128,7 +128,7 @@
   file->pos = file->buffer;
 
   /* read it in */
-#ifdef __CYGWIN32__
+#ifdef __WIN32__
   if ((file->size) && ((nr = read(fd, file->buffer, file->size)) <= 0)) {
 #else
   if ((nr = read(fd, file->buffer, file->size)) < file->size) {

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

end of thread, other threads:[~2008-02-14  0:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-08 23:05 [PATCH] build powerpc sim for mingw host Dave Murphy
2008-02-13 23:39 ` Joel Brobecker
2008-02-13 23:48   ` Brian Dessent
2008-02-14  0:42 ` Daniel Jacobowitz

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