[RFC 1/3] catch syscall -- try 6 -- Source-code modifications

Eli Zaretskii eliz@gnu.org
Sat Sep 5 07:24:00 GMT 2009


> +/* Syscall catch.  NEEDED is nonzero if any syscall catch (of any
> +   kind) is requested.  ANY_COUNT is nonzero if a generic
> +   (filter-less) syscall catch is being requested.  TABLE is an array
> +   of ints, indexed by syscall number.  An element in this array is
> +   nonzero if that syscall should be caught.  TABLE_SIZE is the number
> +   of elements in TABLE.  */
> +
> +#define target_set_syscall_catchpoint(pid, needed, any_count, table_size, table) \
> +     (*current_target.to_set_syscall_catchpoint) (pid, needed, any_count, \
> +						  table_size, table)
> +

Could you perhaps expand the comment a bit more?  For example, what
should the target do if NEEDED is zero?  Also, I understand that
ANY_COUNT nonzero means TABLE should be ignored, is that right?

IOW, imagine that someone is to implement this method, and try to give
any information necessary to write the code.

Thanks.



More information about the Gdb-patches mailing list