diff options
author | Pedro Alves <pedro@codesourcery.com> | 2011-02-14 12:54:40 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2011-02-14 12:54:40 +0000 |
commit | 713d8e495e4b772bdb7097297b7072d9c9c32cf3 (patch) | |
tree | 5f8750433756d8a9e85e37783e29032570b0b04c /gdb/value.c | |
parent | 071f12fd822ac670d6fc1eac2aa595bbabb69517 (diff) | |
download | gdb-713d8e495e4b772bdb7097297b7072d9c9c32cf3.tar.gz |
* value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
range.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/value.c b/gdb/value.c index 2b8dd360abb..116eee269da 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -439,7 +439,7 @@ mark_value_bytes_unavailable (struct value *value, int offset, int length) i = VEC_lower_bound (range_s, value->unavailable, &newr, range_lessthan); if (i > 0) { - struct range *bef = VEC_index (range_s, value->unavailable, i - i); + struct range *bef = VEC_index (range_s, value->unavailable, i - 1); if (ranges_overlap (bef->offset, bef->length, offset, length)) { |