[pushed] Remove stray trailing "," from DAP breakpoint.py

Message ID 20230920230938.425621-1-tromey@adacore.com
State New
Headers
Series [pushed] Remove stray trailing "," from DAP breakpoint.py |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_check--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 warning Patch is already merged
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 warning Patch is already merged

Commit Message

Tom Tromey Sept. 20, 2023, 11:09 p.m. UTC
  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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/gdb/python/lib/gdb/dap/breakpoint.py b/gdb/python/lib/gdb/dap/breakpoint.py
index 8518814a8d2..ae3a5027f35 100644
--- a/gdb/python/lib/gdb/dap/breakpoint.py
+++ b/gdb/python/lib/gdb/dap/breakpoint.py
@@ -119,7 +119,7 @@  def _breakpoint_descriptor(bp):
             )
 
         if loc.address:
-            result["instructionReference"] = hex(loc.address),
+            result["instructionReference"] = hex(loc.address)
 
     return result