mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-28 13:26:30 +00:00
* eval.c (evaluate_subexp_standard): Assert that there is at
least one array dimension.
This commit is contained in:
parent
a03db8620f
commit
1c9f699cd9
@ -1,3 +1,8 @@
|
||||
2008-11-04 Daniel Jacobowitz <dan@codesourcery.com>
|
||||
|
||||
* eval.c (evaluate_subexp_standard): Assert that there is at
|
||||
least one array dimension.
|
||||
|
||||
2008-11-03 Vladimir Prus <vladimir@codesourcery.com>
|
||||
|
||||
Make attach_command exception-safe
|
||||
|
@ -1976,6 +1976,8 @@ evaluate_subexp_standard (struct type *expect_type,
|
||||
if (nargs != ndimensions)
|
||||
error (_("Wrong number of subscripts"));
|
||||
|
||||
gdb_assert (nargs > 0);
|
||||
|
||||
/* Now that we know we have a legal array subscript expression
|
||||
let us actually find out where this element exists in the array. */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user