This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/4] catch syscall -- try 4 -- Architecture-independent part
- From: Pedro Alves <pedro at codesourcery dot com>
- To: Sérgio Durigan Júnior <sergiodj at linux dot vnet dot ibm dot com>
- Cc: Daniel Jacobowitz <drow at false dot org>, gdb-patches at sourceware dot org
- Date: Mon, 9 Mar 2009 18:39:49 +0000
- Subject: Re: [PATCH 1/4] catch syscall -- try 4 -- Architecture-independent part
- References: <1232929831.26873.22.camel@miki> <20090309131856.GA16796@caradoc.them.org> <1236611364.12452.7.camel@miki>
On Monday 09 March 2009 15:09:24, Sérgio Durigan Júnior wrote:
> if (catch_syscall_enabled () > 0) ...
>
> What happens is that the code does not freeze. GDB still works with
> this, and as far as I could investigate it shows everything fine.
> Therefore, I think this function is not needed at all.
Oh, was that because you're only enabling PTRACE_O_TRACESYSGOOD
after startup_inferior is finished, in linux_child_post_startup_inferior,
and, PT_SYSCALL just behaves as PT_CONTINUE in that case? That
would make sense to me.
--
Pedro Alves