This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: [python] [patch] PR 13369/13374


>...
>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]