Do not send "new breakpoint" event when breakpoint is set
authorTom Tromey <tromey@adacore.com>
Mon, 24 Jul 2023 19:28:58 +0000 (13:28 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 1 Aug 2023 18:54:52 +0000 (12:54 -0600)
commit8a8a5ccadd18b9f1ecb7943bf56fad29c6f529bc
tree05b33251ca2c3b9de1d24e19d820e7ca6a0f2064
parente982d96cd601b1d4cb1bb23b3f3611ac42cca3e3
Do not send "new breakpoint" event when breakpoint is set

When the DAP client sets a breakpoint, gdb currently sends a "new
breakpoint" event.  However, Vladimir Makaev discovered that this
causes VSCode to think there are two breakpoints.

This patch changes gdb to suppress the event in this case.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=30678
gdb/python/lib/gdb/dap/breakpoint.py
gdb/testsuite/gdb.dap/basic-dap.exp