This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] build powerpc sim for mingw host
- From: Dave Murphy <davem at devkitpro dot org>
- To: gdb-patches at sourceware dot org
- Date: Fri, 08 Feb 2008 23:05:24 +0000
- Subject: [PATCH] build powerpc sim for mingw host
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
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) {