mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
range.
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user