Hi, The trilogy of patches now has a fourth part - watchpoint function changes. These had to be written since Jan pointed out that s390x allows arbitrary length watchpoints using a range. In fact, there are some other architectures that seem to do this too. The patch does not cause any regressions in the testsuite. It introduces some new warnings in splint, but I found them to be safe, since the watchpoint sizes in those cases would be bound to within sizeof (int). E.g. i386 watchpoints. Regards, Siddhesh gdb/ChangeLog: * arm-linux-nat.c (arm_linux_insert_watchpoint): Expand parameter LEN to LONGEST. (arm_linux_remove_watchpoint): Likewise. (arm_linux_watchpoint_addr_within_range): Expand parameter LENGTH to LONGEST. * i386-nat.c (i386_insert_watchpoint): Expand parameter LEN to LONGEST. (i386_remove_watchpoint): Likewise. * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise. (ia64_linux_remove_watchpoint): Likewise. * inf-ttrace.c (inf_ttrace_insert_watchpoint): Likewise. Expand NUM_PAGES, PAGE to LONGEST. (inf_ttrace_remove_watchpoint): Likewise. * mips-linux-nat.c (mips_linux_insert_watchpoint): Expand parameter LEN to LONGEST. (mips_linux_remove_watchpoint): Likewise. * nto-procfs.c (procfs_remove_hw_watchpoint): Likewise. (procfs_insert_hw_watchpoint): Likewise. * ppc-linux-nat.c (calculate_dvc): Likewise. Expand I, NUM_BYTE_ENABLE to LONGEST. (check_condition): Expand parameter LEN to point to LONGEST. (ppc_linux_can_accel_watchpoint_condition): Expand parameter LEN to LONGEST. (create_watchpoint_request): Likewise. (ppc_linux_insert_watchpoint): Likewise. (ppc_linux_remove_watchpoint): Likewise. (ppc_linux_watchpoint_addr_within_range): Expand parameter LENGTH to LONGEST. * procfs.c (proc_set_watchpoint): Expand parameter LEN to LONGEST. (procfs_set_watchpoint): Likewise. (procfs_insert_watchpoint): Likewise. (procfs_remove_watchpoint): Likewise. * remote-m32r-sdi.c (m32r_insert_watchpoint): Likewise. Use plongest to format print LEN. (m32r_remove_watchpoint): Likewise. * remote-mips.c (mips_insert_watchpoint): Expand parameter LEN to LONGEST. (mips_remove_watchpoint): Likewise. * remote.c (remote_insert_watchpoint): Likewise. Use phex_nz to format print LEN. (remote_remove_watchpoint): Likewise. (remote_watchpoint_addr_within_range): Expand parameter LENGTH to LONGEST. * s390-nat.c (s390_insert_watchpoint): Expand parameter LEN to LONGEST. (s390_remove_watchpoint): Likewise. * target.c (update_current_target): Expand parameter LEN for callbacks to TO_INSERT_WATCHPOINT, TO_REMOVE_WATCHPOINT, TO_CAN_ACCEL_WATCHPOINT_CONDITION, to LONGEST. (default_watchpoint_addr_within_range): Expand parameter LENGTH to LONGEST. (debug_to_can_accel_watchpoint_condition): Expand parameter LEN to LONGEST. Use plongest to format print LEN. (debug_to_watchpoint_addr_within_range): Expand parameter LENGTH to LONGEST. Use plongest to format print LENGTH. (debug_to_insert_watchpoint): Expand parameter LEN to LONGEST. Use plongest to format print LEN. (debug_to_remove_watchpoint): Likewise. * target.h (struct target_ops): Expand parameter LEN of TO_REMOVE_WATCHPOINT, TO_INSERT_WATCHPOINT, TO_WATCHPOINT_ADDR_WITHIN_RANGE and TO_CAN_ACCEL_WATCHPOINT_CONDITION to LONGEST.