[binutils-gdb] Remove stray trailing "," from DAP breakpoint.py

Tom Tromey tromey@sourceware.org
Wed Sep 20 23:09:54 GMT 2023


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2bcbfaeadcd083b6feb55101647f161a7db2588b

commit 2bcbfaeadcd083b6feb55101647f161a7db2588b
Author: Tom Tromey <tromey@adacore.com>
Date:   Wed Sep 20 17:08:28 2023 -0600

    Remove stray trailing "," from DAP breakpoint.py
    
    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.

Diff:
---
 gdb/python/lib/gdb/dap/breakpoint.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


More information about the Gdb-cvs mailing list