Summary: | Use ensure_python_env over PyGilState_Ensure | ||
---|---|---|---|
Product: | gdb | Reporter: | Phil Muldoon <pmuldoon> |
Component: | python | Assignee: | Phil Muldoon <pmuldoon> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | drow, gdb-prs |
Priority: | P2 | ||
Version: | archer | ||
Target Milestone: | 7.1 | ||
Host: | Target: | ||
Build: | Last reconfirmed: |
Description
Phil Muldoon
2009-10-19 10:25:34 UTC
This causes a segfault when it triggers. I've checked in a patch to archer-tromey-python. Checked FSF upstream and there do not appear to be any other areas where PyGILState_Ensure is used. commit d4a1bd50bb1d7c3cab75f690597c64191b2b6f78 Author: Phil Muldoon <pmuldoon@redhat.com> Date: Thu Oct 22 08:39:28 2009 +0100 Use ensure_python_dev over PyGILState_Ensure/Release. 2009-10-21 Phil Muldoon <pmuldoon@redhat.com> PR python/10806 * python/python.c (run_python_script): Use ensure_python_env over PyGILState_Ensure. (gdbpy_run_events): Likewise. (run_python_script): Likewise. (source_python_script): Likewise. * python/py-breakpoint.c (gdbpy_breakpoint_created): Likewise. (gdbpy_breakpoint_deleted): Likewise. * python/py-inferior.c (delete_inferior_object): Likewise. (add_thread_objet): Likewise. (delete_thread_object): Likewise. |