[PATCH] Fix PR gdb/12953: No hardware watchpoints on FreeBSD amd64
Pedro Alves
alves.ped@gmail.com
Tue Dec 20 16:05:00 GMT 2011
On Tuesday 06 December 2011 00:54:24, Valery Khromov wrote:
> + /* FIXME: kettenis/2001-03-31: Calling perror_with_name if the
> + ptrace call fails breaks debugging remote targets. The correct
> + way to fix this is to add the hardware breakpoint and watchpoint
> + stuff to the target vector. For now, just return zero if the
> + ptrace call fails. */
This is no longer necessary, and was recently removed everywhere. See:
<http://sourceware.org/ml/gdb-patches/2011-12/msg00139.html>
> + if (ptrace (PT_GETDBREGS, PIDGET (inferior_ptid),
> + (PTRACE_TYPE_ARG3) &dbregs, 0) == -1)
> +#if 0
> + perror_with_name (_("Couldn't read debug registers"));
> +#else
> + return 0;
> +#endif
--
Pedro Alves
More information about the Gdb-patches
mailing list