This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [python] Fix strings in python-function.c


On Fri, Nov 7, 2008 at 2:12 PM, Thiago Jung Bauermann
<bauerman@br.ibm.com> wrote:

> Same thing as before, for python-function.c
...
> @@ -66,7 +66,7 @@ fnpy_call (void *cookie, int argc, struct value **argv)
>   if (! callable)
>     {
>       Py_DECREF (args);
> -      error ("no method named 'invoke' in object");
> +      error _(("No method named 'invoke' in object."));
>     }

This causes a syntax error :(
Fix:

diff --git a/gdb/python/python-function.c b/gdb/python/python-function.c
index bc93e57..8bff712 100644
--- a/gdb/python/python-function.c
+++ b/gdb/python/python-function.c
@@ -66,7 +66,7 @@ fnpy_call (void *cookie, int argc, struct value **argv)
   if (! callable)
     {
       Py_DECREF (args);
-      error _(("No method named 'invoke' in object."));
+      error (_("No method named 'invoke' in object."));
     }

   result = PyObject_Call (callable, args, NULL);


-- 
Paul Pluzhnikov


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]