aboutsummaryrefslogtreecommitdiff
path: root/gdb/go32-nat.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2000-04-12 17:04:42 +0000
committerEli Zaretskii <eliz@gnu.org>2000-04-12 17:04:42 +0000
commitd03cef9d487c6483cef99f53d30288c2eeb27901 (patch)
tree18d531190ee78c8c853ef49c4d502ad333db7ae4 /gdb/go32-nat.c
parentc63ce875537178489c14607623e0456e16bbcccc (diff)
downloadgdb-d03cef9d487c6483cef99f53d30288c2eeb27901.zip
gdb-d03cef9d487c6483cef99f53d30288c2eeb27901.tar.gz
gdb-d03cef9d487c6483cef99f53d30288c2eeb27901.tar.bz2
* go32-nat.c (go32_insert_hw_breakpoint): When there are no more
hardware breakpoint resources, return EBUSY. (go32_handle_nonaligned_watchpoint): If the argument WHAT is not one of the enumerated values, return EINVAL.
Diffstat (limited to 'gdb/go32-nat.c')
-rw-r--r--gdb/go32-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/go32-nat.c b/gdb/go32-nat.c
index c839d11..6668f06 100644
--- a/gdb/go32-nat.c
+++ b/gdb/go32-nat.c
@@ -879,7 +879,7 @@ go32_handle_nonaligned_watchpoint (wp_op what, CORE_ADDR waddr, CORE_ADDR addr,
else if (what == wp_count)
rv++;
else
- status = -1;
+ status = EINVAL;
/* We keep the loop going even after a failure, because some of
the other aligned watchpoints might still succeed, e.g. if
they watch addresses that are already watched, and thus just
@@ -1055,7 +1055,7 @@ go32_insert_hw_breakpoint (CORE_ADDR addr, void *shadow ATTRIBUTE_UNUSED)
}
SHOW_DR (insert_hw, 0);
- return i < 4 ? 0 : -1;
+ return i < 4 ? 0 : EBUSY;
}
/* Put the device open on handle FD into either raw or cooked