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: RFA: properly handle the GIL


On Thu, Nov 20, 2008 at 06:38:07PM -0700, Tom Tromey wrote:
> This patch changes gdb to only acquire the GIL before running Python
> code.  This is now a general rule for hacking on the Python
> integration: if the call chain originates in gdb, and enters Python,
> then the GIL must first be acquired.  Currently only the "python"
> command is affected, but there are more instances on the python
> branch.

This looks OK.  Is this a recursive lock?  That is, do we have to
worry about GDB -> Python -> GDB -> Python taking the lock twice?

-- 
Daniel Jacobowitz
CodeSourcery


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