This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
Re: [python] Fix strings in python-function.c
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Thiago Jung Bauermann <bauerman at br dot ibm dot com>
- Cc: archer ml <archer at sourceware dot org>
- Date: Fri, 7 Nov 2008 14:33:08 -0800
- Subject: Re: [python] Fix strings in python-function.c
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta;t=1226097191; bh=CSyMto6dGRyXiRRnie3p0e9V550=;h=DomainKey-Signature:MIME-Version:In-Reply-To:References:Date: Message-ID:Subject:From:To:Cc:Content-Type: Content-Transfer-Encoding; b=ut8L16G7TFTbVOb2K8pgcSuvlt3lFjKjshcO8vlFbDKI9YSgn4x72j2vwxrA2kk7DIRmC/QylfcawxvDDxIHtA==
- Domainkey-signature: a=rsa-sha1; s=beta; d=google.com; c=nofws; q=dns;h=mime-version:in-reply-to:references:date:message-id:subject:from:to:cc:content-type:content-transfer-encoding;b=gIGwv5JaOn0/PnUZvoeYadg3tll6CK2lzQcgfGDHVpga7qC2BcUB39UMKcoHiOxsedVdNIqJtEUBTR2MWtWdng==
- References: <1226095960.20764.128.camel@localhost.localdomain>
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