From: Pedro Alves <palves@redhat.com>
To: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: fix gdb_assert caused by 'catch signal ...' and fork
Date: Fri, 10 May 2013 17:20:00 -0000 [thread overview]
Message-ID: <518D2C4F.8070102@redhat.com> (raw)
In-Reply-To: <1368136582.30058.7.camel@soleil>
Hi Philippe,
(Please mark newer posts/revisions of patches in new threads
with v2, v3, etc. in the subject line.)
> Index: gdb/testsuite/gdb.base/catch-signal-fork.c
> ===================================================================
> RCS file: gdb/testsuite/gdb.base/catch-signal-fork.c
> diff -N gdb/testsuite/gdb.base/catch-signal-fork.c
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ gdb/testsuite/gdb.base/catch-signal-fork.c 9 May 2013 21:46:36 -0000
> @@ -0,0 +1,58 @@
> +/* This testcase is part of GDB, the GNU debugger.
> +
> + Copyright 2013-2013 Free Software Foundation, Inc.
Write only "2013" when we only have a single year.
But, if the file is based on another existing file, we should
preserve the existing file's copyright years in the new file.
> +int
> +main ()
> +{
> + int i;
> + signal (SIGHUP, handle);
> +
> + raise (SIGHUP); /* first HUP */
> +
> + signal (SIGCHLD, handle);
> + for (i = 0; i < 3; i++) /* fork loop */
> + {
> + switch (fork())
> + {
> + case -1:
> + perror ("fork");
> + exit (1);
> + case 0:
> + exit (0);
> + }
> + (void) wait(NULL);
Missing space before parens. (do you really need the cast?)
> Index: gdb/testsuite/gdb.base/catch-signal-fork.exp
> ===================================================================
> RCS file: gdb/testsuite/gdb.base/catch-signal-fork.exp
> diff -N gdb/testsuite/gdb.base/catch-signal-fork.exp
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ gdb/testsuite/gdb.base/catch-signal-fork.exp 9 May 2013 21:46:36 -0000
> @@ -0,0 +1,43 @@
> +# Copyright 2013-2013 Free Software Foundation, Inc.
2013-2013 again.
--
Pedro Alves
next prev parent reply other threads:[~2013-05-10 17:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-09 21:56 Philippe Waroquiers
2013-05-10 16:39 ` Doug Evans
2013-05-10 17:18 ` Pedro Alves
2013-05-10 22:14 ` Philippe Waroquiers
2013-05-11 9:10 ` Pedro Alves
2013-05-10 17:20 ` Pedro Alves [this message]
2013-05-16 20:30 ` Philippe Waroquiers
2013-05-17 18:18 ` Pedro Alves
2013-05-21 18:49 ` Philippe Waroquiers
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=518D2C4F.8070102@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=philippe.waroquiers@skynet.be \
/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