[python] [patch] PR 13369/13374
Paul_Koning@Dell.com
Paul_Koning@Dell.com
Mon Nov 21 11:50:00 GMT 2011
>...
>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
More information about the Gdb-patches
mailing list