* 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 b9854e7f782ab35dd29d1f6fa0fb834580d13038..4e4da653d588837e063ba8328bf4ba88927bb874 100644 (file)
@@ -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>
 
        ARI fixes: Add missing internationalization markups throughout
index 515eaeca7bdfe141ad3dc6737cb01480a06268f4..4381d52039ba562306638499672e2b9cacb40c5c 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));
            }