Remove stray trailing "," from DAP breakpoint.py
authorTom Tromey <tromey@adacore.com>
Wed, 20 Sep 2023 23:08:28 +0000 (17:08 -0600)
committerTom Tromey <tromey@adacore.com>
Wed, 20 Sep 2023 23:09:13 +0000 (17:09 -0600)
The buildbot pointed out that the last DAP series I checked in had an
issue.  Looking into it, it seems there is a stray trailing "," in
breakpoint.py.  This patch removes it.

This seems to point out a test suite deficiency.  I will look into
fixing that.

gdb/python/lib/gdb/dap/breakpoint.py

index 8518814a8d2282ab0c12e335bd4ff26320e82c5d..ae3a5027f35217cd86e5e0feef7403b794526e16 100644 (file)
@@ -119,7 +119,7 @@ def _breakpoint_descriptor(bp):
             )
 
         if loc.address:
-            result["instructionReference"] = hex(loc.address),
+            result["instructionReference"] = hex(loc.address)
 
     return result