From: Tom Tromey <tromey@redhat.com>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: gdb-patches ml <gdb-patches@sourceware.org>
Subject: Re: [RFA][python] Fixes for existing Python code.
Date: Mon, 02 Feb 2009 18:30:00 -0000 [thread overview]
Message-ID: <m3hc3cpubx.fsf@fleche.redhat.com> (raw)
In-Reply-To: <1233579973.7000.8.camel@localhost.localdomain> (Thiago Jung Bauermann's message of "Mon\, 02 Feb 2009 11\:06\:12 -0200")
>>>>> "Thiago" == Thiago Jung Bauermann <bauerman@br.ibm.com> writes:
Thiago> I'd also like to remind that the following patches for Python support
Thiago> are still pending:
Thiago> http://sourceware.org/ml/gdb-patches/2009-01/msg00016.html
This one is the patch to add more methods to Value. I have two
comments on it.
First, in convert_value_from_python, I see:
- return NULL;
+ {
+ PyErr_Clear ();
+ error (_("Error converting Python value."));
+ }
This should call gdbpy_print_stack instead of PyErr_Clear. I think we
have -- or should have -- a general rule that we call
gdbpy_print_stack when "converting" a Python exception to a gdb
exception. Using this lets the user control whether stack traces are
printed for Python errors, which is handy for debugging Python code.
My other comment is just to make sure that all of Eli's documentation
comments have been addressed.
The patch is ok with the above change.
Thiago> http://sourceware.org/ml/gdb-patches/2009-01/msg00003.html
This is the patch to add la_getstr.
I'll reply to it separately.
Thiago> http://sourceware.org/ml/gdb-patches/2009-01/msg00004.html
This adds Value.string, using la_getstr.
This patch is ok once the la_getstr code goes in, and provided that
Eli oks the documentation.
Tom
next prev parent reply other threads:[~2009-02-02 18:30 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-02 13:06 Thiago Jung Bauermann
2009-02-02 13:19 ` Thiago Jung Bauermann
2009-02-02 17:28 ` Tom Tromey
2009-02-05 16:43 ` Thiago Jung Bauermann
2009-02-02 18:30 ` Tom Tromey [this message]
2009-02-04 1:01 ` [RFC][python] Fixes and improvements to gdb.Value. (was Re: [RFA][python] Fixes for existing Python code.) Thiago Jung Bauermann
2009-02-04 19:40 ` [RFC][python] Fixes and improvements to gdb.Value Tom Tromey
2009-02-04 21:57 ` Thiago Jung Bauermann
2009-02-02 19:23 ` [RFA][python] Fixes for existing Python code Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3hc3cpubx.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=bauerman@br.ibm.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox