This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch][python] 0 of 5 - Frame filters and Wrappers
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 16 May 2013 15:50:01 +0400
- Subject: Re: [patch][python] 0 of 5 - Frame filters and Wrappers
- References: <51876848 dot 2020802 at redhat dot com> <518CD285 dot 4040706 at redhat dot com>
Hi Phil,
> This patch-series has been committed in its entirety. Thank you for
> the reviews, it is very much appreciated. I have attached the
> ChangeLog entries as merged for committing the patch.
There is something I noticed while using a debugger where the gdb
modules cannot be found:
(gdb) bt
Python Exception <type 'exceptions.ImportError'> No module named gdb.frames:
This is because I am using a debugger where python module path relocation
is not working for some reason I am yet to investigate. But this would
happen to someone improperly installing GDB as well. This can actually
happen fairly often, because it's usual in emergency situations to just
copy the gdb binary where you need it instead of the full blown install,
knowingly letting go of the Python capabilities when you don't need them.
I am wondering whether we might want to be a little more resilient,
in that situation, and fall-back on pretending Python is not available
if the gdb.frames module could not be imported.
--
Joel