This is the architecture dependent part of the patch. It adds support for PPC, PPC64 and i386 archs. Regards, -- Sérgio Durigan Júnior Linux on Power Toolchain - Software Engineer Linux Technology Center - LTC IBM Brazil gdb/ChangeLog 2008-11-04 Sergio Durigan Junior * i386-linux-nat.c (i386_linux_resume): Select the proper request to be made for ptrace() considering if we are catching syscalls or not. * i386-linux-tdep.c: Define the syscall's XML struct to hold information about syscalls. (init_sysinfo): New. (i386_linux_get_syscall_number): New. (i386_linux_syscall_name_from_number): New. (i386_linux_syscall_number_from_name): New. (i386_linux_get_syscalls_names): New. (i386_linux_init_abi): Register the correct functions for syscall catchpoint. * linux-nat.c: Define some helpful variables to track wether we have support for the needed ptrace() option. (linux_test_for_tracesysgood): New. (linux_supports_tracesysgood): New. (linux_enable_tracesysgood): New. (linux_passed_by_entrypoint): New. (linux_enable_event_reporting): Save the current used ptrace() options. (linux_child_post_startup_inferior): Create the entry breakpoint. (linux_child_insert_syscall_catchpoint): New. (linux_child_remove_syscall_catchpoint): New. (linux_nat_create_inferior): Properly set the flag which indicates if the inferior have already passed through its entrypoint. (linux_handle_extended_wait): Handle the case which the inferior stops because it has called or returned from a syscall. (linux_nat_filter_event): Likewise. (linux_target_install_ops): Install the necessary functions to handle syscall catchpoints and entry breakpoints. * ppc-linux-tdep.c: Define the syscall's XML struct to hold information about syscalls. (ppc_linux_get_syscall_number): New. (init_sysinfo): New. (ppc_linux_syscall_name_from_number): New. (ppc_linux_syscall_number_from_name): New. (ppc_linux_get_syscalls_names): New. (ppc_linux_init_abi): Register the correct functions for syscall catchpoint.