* python/py-value.c (valpy_getitem): Fix formatting of error function
authorPierre Muller <muller@sourceware.org>
Fri, 18 Mar 2011 16:09:57 +0000 (16:09 +0000)
committerPierre Muller <muller@sourceware.org>
Fri, 18 Mar 2011 16:09:57 +0000 (16:09 +0000)
call.

gdb/ChangeLog
gdb/python/py-value.c

index b9854e7..4e4da65 100644 (file)
@@ -1,5 +1,10 @@
 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>
+
        ARI fixes: Add missing internationalization markups throughout
        C source files.
        * darwin-nat-info.c: Ditto.
index 515eaec..4381d52 100644 (file)
@@ -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));
            }