aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroltolm <oleg.tolmatcev@gmail.com>2024-09-28 11:35:04 +0200
committerTom Tromey <tromey@adacore.com>2024-10-03 11:12:40 -0600
commit59529d80e8f0c3a68c9285e82bdd1c97cc2760f3 (patch)
treef91062bb72bb1fe54cc655be0378929900e25f44
parent98b1464bdf6306a8ab4614b5e9f76cdb2dd00b33 (diff)
downloadgdb-59529d80e8f0c3a68c9285e82bdd1c97cc2760f3.zip
gdb-59529d80e8f0c3a68c9285e82bdd1c97cc2760f3.tar.gz
gdb-59529d80e8f0c3a68c9285e82bdd1c97cc2760f3.tar.bz2
gdb-dap: disable events when deleting breakpoints
when I disable a breakpoint in VS Code the breakpoint is removed instead. I compared the behavior to lldb-dap and disabled events when removing a breakpoint. Now it is possible to disable and enable breakpoints in VS Code.
-rw-r--r--gdb/python/lib/gdb/dap/breakpoint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/python/lib/gdb/dap/breakpoint.py b/gdb/python/lib/gdb/dap/breakpoint.py
index db8ac10..15055f2 100644
--- a/gdb/python/lib/gdb/dap/breakpoint.py
+++ b/gdb/python/lib/gdb/dap/breakpoint.py
@@ -208,9 +208,9 @@ def _set_breakpoints_callback(kind, specs, creator):
}
)
- # Delete any breakpoints that were not reused.
- for entry in saved_map.values():
- entry.delete()
+ # Delete any breakpoints that were not reused.
+ for entry in saved_map.values():
+ entry.delete()
return result