Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Josh Stone <jistone@redhat.com>, gdb-patches@sourceware.org
Cc: sergiodj@redhat.com
Subject: Re: [PATCH v2] gdb: Improve syscall entry/return tracking on Linux
Date: Sat, 10 Oct 2015 14:52:00 -0000	[thread overview]
Message-ID: <5619260C.9060801@redhat.com> (raw)
In-Reply-To: <1444434776-4016-1-git-send-email-jistone@redhat.com>

On 10/10/2015 12:52 AM, Josh Stone wrote:

> 2015-10-09  Josh Stone  <jistone@redhat.com>
> 
> 	* gdb.base/catch-syscall.c (unknown_syscall): New variable.
> 	(main): Trigger a vfork and an unknown syscall.

	* gdb.base/catch-syscall.c: Include <sched.h>.
	(unknown_syscall): New variable.
	(main): Trigger a vfork and an unknown syscall.
	...


>  int
> @@ -47,6 +49,13 @@ main (void)
>  	write (fd[1], buf1, sizeof (buf1));
>  	read (fd[0], buf2, sizeof (buf2));
>  
> +	/* Test vfork-event interactions.  Child exits immediately.  */
> +	if (vfork () == 0)
> +	  _exit (0);

Please mention that we avoid fork so the test works on no-mmu
configurations.

>  # This procedure checks if there was a call to a syscall.
> -proc check_call_to_syscall { syscall } {
> +proc check_call_to_syscall { syscall { pattern "" } } {

Please extend the intro comment to mention what PATTERN is for.

OK with these changes.

Thanks,
Pedro Alves


  reply	other threads:[~2015-10-10 14:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-09  1:22 [PATCH] " Josh Stone
2015-10-09 10:48 ` Pedro Alves
2015-10-09 17:57   ` Josh Stone
2015-10-09 18:09     ` Pedro Alves
2015-10-09 23:52       ` Josh Stone
2015-10-10 14:46         ` Pedro Alves
2015-10-09 23:53     ` [PATCH v2] " Josh Stone
2015-10-10 14:52       ` Pedro Alves [this message]
2015-10-17  1:17         ` [PATCH v3] " Josh Stone
2015-10-19  8:48           ` Pedro Alves

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=5619260C.9060801@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=jistone@redhat.com \
    --cc=sergiodj@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