Index: gdb/remote.c =================================================================== RCS file: /cvs/src/src/gdb/remote.c,v retrieving revision 1.441 diff -r1.441 remote.c 7739a7740 > int remote_hw_watchpoint_length_limit = -1; 7742a7744,7756 > remote_region_ok_for_hw_watchpoint (CORE_ADDR addr, int len) > { > if (remote_hw_watchpoint_length_limit == 0) > return 0; > else if (remote_hw_watchpoint_length_limit < 0) > return 1; > else if (len <= remote_hw_watchpoint_length_limit) > return 1; > else > return 0; > } > > static int 10269a10284,10285 > remote_ops.to_region_ok_for_hw_watchpoint > = remote_region_ok_for_hw_watchpoint; 10675a10692,10698 > add_setshow_zinteger_cmd ("hardware-watchpoint-length-limit", no_class, > &remote_hw_watchpoint_length_limit, _("\ > Set the maximum length of a target hardware watchpoint."), _("\ > Show the maximum length of a target hardware watchpoint."), _("\ > Specify a negative limit for unlimited."), > NULL, NULL, /* FIXME: i18n: The maximum length of a target hardware watchpoint is %s. */ > &remote_set_cmdlist, &remote_show_cmdlist); Index: gdb/doc/gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.814 diff -r1.814 gdb.texinfo 16502a16503,16510 > @cindex limit hardware watchpoints length > @cindex remote target, limit watchpoints length > @anchor{set remote hardware-watchpoint-length-limit} > @item set remote hardware-watchpoint-length-limit @var{limit} > Restrict @value{GDBN} to using @var{limit} for the maximum length of > remote hardware watchpoints. A limit of -1, the default, is treated > as unlimited. >