aboutsummaryrefslogtreecommitdiff
path: root/gdb/bt-utils.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-11-17 10:08:50 -0700
committerTom Tromey <tromey@adacore.com>2023-11-27 08:54:56 -0700
commitc618a1c548193d2a6a8c3d909a3d1c620a156b5d (patch)
tree17c903269c2ce3a4347f657ce576ad24e7c86599 /gdb/bt-utils.c
parentf087eb27651a97ca2f6350c3c48fb97fc0da9669 (diff)
downloadbinutils-c618a1c548193d2a6a8c3d909a3d1c620a156b5d.zip
binutils-c618a1c548193d2a6a8c3d909a3d1c620a156b5d.tar.gz
binutils-c618a1c548193d2a6a8c3d909a3d1c620a156b5d.tar.bz2
Fix bug in DAP handling of 'pause' requests
While working on cancellation, I noticed that a DAP 'pause' request would set the "do not emit the continue" flag. This meant that a subsequent request that should provoke a 'continue' event would instead suppress the event. I then tried writing a more obvious test case for this, involving an inferior call -- and discovered that gdb.events.cont does not fire for an inferior call. This patch installs a new event listener for gdb.events.inferior_call and arranges for this to emit continue and stop events when appropriate. It also fixes the original bug, by adding a check to exec_and_expect_stop.
Diffstat (limited to 'gdb/bt-utils.c')
0 files changed, 0 insertions, 0 deletions