From: Dave Murphy <davem@devkitpro.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] build powerpc sim for mingw host
Date: Fri, 08 Feb 2008 23:05:00 -0000 [thread overview]
Message-ID: <47ACE034.6020802@devkitpro.org> (raw)
[-- 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) {
next reply other threads:[~2008-02-08 23:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-08 23:05 Dave Murphy [this message]
2008-02-13 23:39 ` Joel Brobecker
2008-02-13 23:48 ` Brian Dessent
2008-02-14 0:42 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47ACE034.6020802@devkitpro.org \
--to=davem@devkitpro.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox