diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-07 16:08:47 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-10 07:28:02 -0600 |
commit | 25ce02ee7b7667fb7bb882421ff869c080777bee (patch) | |
tree | 7ba9838fbf8e0cacef0ddae0d51c7f89ab662998 /gdb/ChangeLog | |
parent | caa429d81a9999699a40b6394c9fb7b258669d54 (diff) | |
download | gdb-25ce02ee7b7667fb7bb882421ff869c080777bee.zip gdb-25ce02ee7b7667fb7bb882421ff869c080777bee.tar.gz gdb-25ce02ee7b7667fb7bb882421ff869c080777bee.tar.bz2 |
Use gdbpy_enter in py-breakpoint.c
A few spots in py-breakpoint.c acquire the GIL manually. However,
because these spots generate events, and because events are expected
to be arbitrary gdb-flavored Python code, it's important to use
gdbpy_enter instead, in order to ensure that the other gdb-related
Python globals are set correctly.
This patch makes this change. Tested on x86-64 Fedora 29.
gdb/ChangeLog
2019-06-10 Tom Tromey <tom@tromey.com>
* python/py-breakpoint.c (gdbpy_breakpoint_created)
(gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
gdbpy_enter.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 795ba45..8868073 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-06-10 Tom Tromey <tom@tromey.com> + + * python/py-breakpoint.c (gdbpy_breakpoint_created) + (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use + gdbpy_enter. + 2019-06-10 Tom Tromey <tromey@adacore.com> * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile |