From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: "Jim Blandy" <jimb@red-bean.com>
Subject: Re: RFA: Building GDB under GLIBC 2.8
Date: Mon, 15 Dec 2008 20:17:00 -0000 [thread overview]
Message-ID: <200812152016.56353.pedro@codesourcery.com> (raw)
In-Reply-To: <8f2776cb0812121804n1008f921h3898bb7bda1581c9@mail.gmail.com>
On Saturday 13 December 2008 02:04:47, Jim Blandy wrote:
> abort (); /* NOTE: GDB has only three calls to abort(). */
^^^^^
<warning> incoming nit </warning>
Ooops, not three anymore, hey? :-)
> default:
> dejavu = 3;
> - write (STDERR_FILENO, msg, sizeof (msg));
> + /* Newer GLIBC versions put the warn_unused_result attribute
> + on write, but this is one of those rare cases where
> + ignoring the return value is correct. Casting to (void)
> + does not fix this problem. This is the solution suggested
> + at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509. */
> + if (write (STDERR_FILENO, msg, sizeof (msg)) != sizeof (msg))
> + abort ();
> exit (1);
> }
--
Pedro Alves
next prev parent reply other threads:[~2008-12-15 20:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-13 2:05 Jim Blandy
2008-12-13 20:33 ` Mark Kettenis
2008-12-13 23:02 ` Andreas Schwab
2008-12-14 6:08 ` Jim Blandy
2008-12-14 19:57 ` Mark Kettenis
2008-12-14 21:54 ` Paul Pluzhnikov
2008-12-14 18:26 ` Jan Kratochvil
2008-12-14 18:26 ` RFA: Building GDB under GLIBC 2.8 [resend w/the patch] Jan Kratochvil
2008-12-15 9:02 ` RFA: Building GDB under GLIBC 2.8 Jim Blandy
2008-12-15 20:07 ` Tom Tromey
2008-12-15 20:17 ` Pedro Alves [this message]
2008-12-20 0:46 ` Jim Blandy
2008-12-29 5:50 ` Joel Brobecker
2008-12-29 23:48 ` Tom Tromey
2009-01-06 18:32 ` Jim Blandy
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=200812152016.56353.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=gdb-patches@sourceware.org \
--cc=jimb@red-bean.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