[PATCH 2/2] target_set_syscall_catchpoint, use gdb::array_view and bool
John Baldwin
jhb@FreeBSD.org
Mon Oct 30 15:59:00 GMT 2017
On 10/30/17 3:32 PM, Pedro Alves wrote:
> I noticed that we're passing down a data/size pair to
> target_ops::to_set_syscall_catchpoint. This commit makes use of
> gdb::array_view instead. While at it, use bool where appropriate as
> well.
>
> gdb/ChangeLog:
> yyyy-mm-dd Pedro Alves <palves@redhat.com>
>
> * break-catch-syscall.c (insert_catch_syscall)
> (remove_catch_syscall): Adjust to pass reference to
> inf_data->syscalls_counts directly via gdb::array_view.
> * linux-nat.c (linux_child_set_syscall_catchpoint): Adjust to use
> bool and gdb::array_view.
I believe fbsd-nat.c will need a similar fixup? It doesn't use the
values passed but does implement the target method.
--
John Baldwin
More information about the Gdb-patches
mailing list