This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/11407] -stack-list-locals should catch python exceptions and return the error per variable
- From: "pmuldoon at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 18 Jun 2010 10:25:39 -0000
- Subject: [Bug python/11407] -stack-list-locals should catch python exceptions and return the error per variable
- References: <20100320163108.11407.niko.sams@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pmuldoon at redhat dot com 2010-06-18 10:25 -------
Created an attachment (id=4845)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4845&action=view)
another draft patch
This patch assumes that apply_val_pretty_printer can raise errors. val_print
is called most commonly in the pretty printers by print_children. This
function makes n*children calls to PyIter, which usually results in errors
arising from uninitialized data. These errors can come from *anywhere* within
Python. If the exception is not handled here, it will bubble up to the top
and GDB will stop executing. In this patch, I catch the exception and print
the error and attempt to print out the data in raw format. I guess we could
exit if we wanted to. This fixes the error cases in this bug. This is draft
patch, what do you think?
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11407
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.