This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [python] [patch] PR 13369/13374
- From: <Paul_Koning at Dell dot com>
- To: <pmuldoon at redhat dot com>, <gdb-patches at sourceware dot org>
- Date: Mon, 21 Nov 2011 05:50:06 -0600
- Subject: RE: [python] [patch] PR 13369/13374
- References: <m3ipmdem7n.fsf@redhat.com>
>...
>diff --git a/gdb/python/py-type.c b/gdb/python/py-type.c
>index f76b1c7..b671cef 100644
>--- a/gdb/python/py-type.c
>+++ b/gdb/python/py-type.c
>...
>@@ -779,8 +787,13 @@ typy_legacy_template_argument (struct type *type, const struct block >*block,
> return NULL;
> }
>
>- /* Note -- this is not thread-safe. */
>- info = cp_demangled_name_to_comp (TYPE_NAME (type), &err);
>+ TRY_CATCH (except, RETURN_MASK_ALL)
>+ {
>+ /* Note -- this is not thread-safe. */
Does the comment "not thread safe" indicate that this is a spot where the GIL should be acquired and isn't currently? Or doesn't the GIL help for that?
paul