summaryrefslogtreecommitdiff
path: root/gdb/i386bsd-nat.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2011-12-05 14:16:50 +0000
committerPedro Alves <pedro@codesourcery.com>2011-12-05 14:16:50 +0000
commit1b387e283ae04dfa22adfd5379beeab3360be043 (patch)
tree81a0a7893add9241ba945d9cdfabdbd9c3cc8681 /gdb/i386bsd-nat.c
parentd0394713485f488b02aeaf054c201c3cfe5cc9fb (diff)
downloadgdb-1b387e283ae04dfa22adfd5379beeab3360be043.tar.gz
2012-12-05 Pedro Alves <pedro@codesourcery.com>
* amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment. Reinstate perror_with_name call on ptrace error. Remove #if 0. * i386-linux-nat.c (i386_linux_dr_get): Likewise. * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
Diffstat (limited to 'gdb/i386bsd-nat.c')
-rw-r--r--gdb/i386bsd-nat.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/i386bsd-nat.c b/gdb/i386bsd-nat.c
index d46eaa4958c..fcd772fb939 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386bsd-nat.c
@@ -312,18 +312,9 @@ i386bsd_dr_get_status (void)
{
struct dbreg dbregs;
- /* 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. */
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
return DBREG_DRX ((&dbregs), 6);
}