This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] Release the GIL while running a gdb command or expression
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 12 Oct 2018 15:51:56 +0100
- Subject: Re: [PATCH v2] Release the GIL while running a gdb command or expression
- References: <20181010202233.17985-1-tom@tromey.com>
On 10/10/2018 21:22, Tom Tromey wrote:
> PR python/23615 points out that gdb.execute_gdb_command does not
> release the Python GIL. This means that, while the gdb command is
> running, other Python threads do not run.
>
> This patch solves the problem by introducing a new RAII class that can
> be used to temporarily release and then re-acquire the GIL, then puts
> this into the appropriate places in execute_gdb_command and
> gdbpy_parse_and_eval.
>
> This version of the patch includes a test case from Phil.
I know I said this on the other email, but, Version 2 LGTM also.
Cheers
Phil