mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* python/py-value.c (valpy_getitem): Fix formatting of error function
call.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
|
* python/py-value.c (valpy_getitem): Fix formatting of error function
|
||||||
|
call.
|
||||||
|
|
||||||
2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
|
2011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
ARI fixes: Add missing internationalization markups throughout
|
ARI fixes: Add missing internationalization markups throughout
|
||||||
|
@ -479,7 +479,7 @@ valpy_getitem (PyObject *self, PyObject *key)
|
|||||||
type = check_typedef (value_type (tmp));
|
type = check_typedef (value_type (tmp));
|
||||||
if (TYPE_CODE (type) != TYPE_CODE_ARRAY
|
if (TYPE_CODE (type) != TYPE_CODE_ARRAY
|
||||||
&& TYPE_CODE (type) != TYPE_CODE_PTR)
|
&& TYPE_CODE (type) != TYPE_CODE_PTR)
|
||||||
error( _("Cannot subscript requested type."));
|
error (_("Cannot subscript requested type."));
|
||||||
else
|
else
|
||||||
res_val = value_subscript (tmp, value_as_long (idx));
|
res_val = value_subscript (tmp, value_as_long (idx));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user