commit | fee9737afc7ef58153e8849640dac4f4d97feacc | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Sat Jun 08 08:15:57 2019 -0600 |
committer | Tom Tromey <tom@tromey.com> | Tue Oct 01 13:38:26 2019 -0600 |
tree | 9727bb90367188a613eb945bac0c258d8223837a | |
parent | 792581b91e2dba4401645db9b57160ef9c2d1d04 [diff] |
Use run_on_main_thread in gdb.post_event This changes gdb.post_event to use the new run_on_main_thread function. This is somewhat tricky because the Python GIL must be held while manipulating reference counts. 2019-09-30 Tom Tromey <tom@tromey.com> * python/python.c (class gdbpy_gil): New. (struct gdbpy_event): Add constructor, destructor, operator(). (gdbpy_post_event): Use run_on_main_thread. (gdbpy_initialize_events): Remove. (do_start_initialization): Update.