aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2011-03-18 16:09:57 +0000
committerPierre Muller <muller@sourceware.org>2011-03-18 16:09:57 +0000
commite10abd8fbe1d22774878cdaedf031c8fdc2a42cb (patch)
treec5f0929d91a3ca276c65b4fd0fbb62380403e30a /gdb/python
parent7ea6d463301c868bdde9f549bd8aa9a502b2c55d (diff)
downloadgdb-e10abd8fbe1d22774878cdaedf031c8fdc2a42cb.zip
gdb-e10abd8fbe1d22774878cdaedf031c8fdc2a42cb.tar.gz
gdb-e10abd8fbe1d22774878cdaedf031c8fdc2a42cb.tar.bz2
* python/py-value.c (valpy_getitem): Fix formatting of error function
call.
Diffstat (limited to 'gdb/python')
-rw-r--r--gdb/python/py-value.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/py-value.c b/gdb/python/py-value.c
index 515eaec..4381d52 100644
--- a/gdb/python/py-value.c
+++ b/gdb/python/py-value.c
@@ -479,7 +479,7 @@ valpy_getitem (PyObject *self, PyObject *key)
type = check_typedef (value_type (tmp));
if (TYPE_CODE (type) != TYPE_CODE_ARRAY
&& TYPE_CODE (type) != TYPE_CODE_PTR)
- error( _("Cannot subscript requested type."));
+ error (_("Cannot subscript requested type."));
else
res_val = value_subscript (tmp, value_as_long (idx));
}