diff options
author | Jim Blandy <jimb@redhat.com> | 2004-11-01 21:55:37 +0000 |
---|---|---|
committer | Jim Blandy <jimb@redhat.com> | 2004-11-01 21:55:37 +0000 |
commit | efb9469a88c9676a264da8700762ac0fde29163a (patch) | |
tree | 1ed3cd3dcadc643a99a8d81e91996d312bac09e9 | |
parent | c94b064e3fa88cddccd7d22fc50b9f570d636d2e (diff) | |
download | gdb-efb9469a88c9676a264da8700762ac0fde29163a.tar.gz |
* thread-db.c (delete_pending_event): Fix bounds-check assertion.
-rw-r--r-- | rda/unix/ChangeLog | 2 | ||||
-rw-r--r-- | rda/unix/thread-db.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/rda/unix/ChangeLog b/rda/unix/ChangeLog index e551035f456..dcb7a42ff72 100644 --- a/rda/unix/ChangeLog +++ b/rda/unix/ChangeLog @@ -1,5 +1,7 @@ 2004-11-01 Jim Blandy <jimb@redhat.com> + * thread-db.c (delete_pending_event): Fix bounds-check assertion. + * ptrace-target.c (stop_lwp): Use tkill when possible; otherwise, fall back gracefully to using kill. diff --git a/rda/unix/thread-db.c b/rda/unix/thread-db.c index f863b8b904b..497c7bdfd26 100644 --- a/rda/unix/thread-db.c +++ b/rda/unix/thread-db.c @@ -1719,7 +1719,7 @@ delete_pending_event (int i) { /* You shouldn't ask to delete an event that's not actually in the list. */ - assert (i <= i && i < pending_events_top); + assert (0 <= i && i < pending_events_top); /* Copy the last element down into this element's position, unless this is the last element itself. */ |