From: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
To: tromey@redhat.com
Cc: gdb-patches@sourceware.org
Subject: Re: Fix gdb 7.0 compilation on IRIX 5.3
Date: Mon, 23 Nov 2009 20:45:00 -0000 [thread overview]
Message-ID: <yddocmtq8ck.fsf@manam.CeBiTec.Uni-Bielefeld.DE> (raw)
In-Reply-To: <m3vdh12dvg.fsf@fleche.redhat.com> (Tom Tromey's message of "Mon, 23 Nov 2009 13:19:15 -0700")
Tom Tromey <tromey@redhat.com> writes:
>>>>>> "Rainer" == Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
>
> Rainer> 2009-11-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
> Rainer> * dwarf2read.c [HAVE_MMAP] (MAP_FAILED): Define if missing.
>
> Rainer> +#ifndef MAP_FAILED
> Rainer> +#define MAP_FAILED -1
> Rainer> +#endif
>
> I would have expected `(void *) -1' here. This is ok if it was
> warning-free. Or the other form is also ok.
I didn't see the warning, and used the cast-free form since gcc had
both. I notice now that they use casts to char * when MAP_FAILED is
used.
Could you check this in for me? I couldn't check out an rw cvs tree from
sourceware.org, although I should have rw access to src.
ro@manam 443 > cvs -d :ext:ro@sourceware.org:/cvs/src co gdb
Permission denied (publickey,gssapi-with-mic).
cvs [checkout aborted]: end of file from server (consult above messages if any)
Btw, the crashes I've observed were already known: PR gdb/10819.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
===================================================================
RCS file: gdb/RCS/dwarf2read.c,v
retrieving revision 1.1
diff -up -r1.1 gdb/dwarf2read.c
--- gdb/dwarf2read.c 2009/09/15 16:09:32 1.1
+++ gdb/dwarf2read.c 2009/11/23 20:36:20
@@ -58,6 +58,9 @@
#endif
#ifdef HAVE_MMAP
#include <sys/mman.h>
+#ifndef MAP_FAILED
+#define MAP_FAILED ((void *) -1)
+#endif
#endif
#if 0
next prev parent reply other threads:[~2009-11-23 20:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-23 18:54 Rainer Orth
2009-11-23 20:19 ` Tom Tromey
2009-11-23 20:45 ` Rainer Orth [this message]
2009-11-23 21:35 ` Tom Tromey
2009-11-23 21:42 ` Rainer Orth
2009-11-23 22:33 ` Joel Brobecker
2009-11-24 17:32 ` Tom Tromey
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=yddocmtq8ck.fsf@manam.CeBiTec.Uni-Bielefeld.DE \
--to=ro@cebitec.uni-bielefeld.de \
--cc=gdb-patches@sourceware.org \
--cc=tromey@redhat.com \
/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