Check for listeners in emit_exiting_event
authorTom Tromey <tromey@adacore.com>
Fri, 3 Jun 2022 16:39:11 +0000 (10:39 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 15 Jun 2022 20:07:25 +0000 (14:07 -0600)
commit9d741cbedb8a7a77bb7c99bbbc363d5af4ba62c2
treea1effc6fdb0e80899cf9d132c0045c199f6ee236
parent285dfa0f6877ea7677e84c3c1001c5d339fbbe5e
Check for listeners in emit_exiting_event

I noticed that emit_exiting_event does not check whether there are any
listeners before creating the event object.  All other event emitters
do this, so this patch updates this one as well.
gdb/python/python.c