Run 'black' on gdb

Running 'black' on gdb fixed a couple of small issues.  This patch is
the result.
This commit is contained in:
Tom Tromey 2022-07-14 12:39:56 -06:00
parent 9afca381e2
commit bf4d777d39
2 changed files with 8 additions and 5 deletions

View file

@ -114,10 +114,12 @@ def check_global_var(expected_val):
if val != expected_val:
raise gdb.GdbError("global_var is 0x%x, expected 0x%x" % (val, expected_val))
# Return a bytes object representing an 'X' packet header with
# address ADDR.
def xpacket_header (addr):
return ("X%x,4:" % addr).encode('ascii')
def xpacket_header(addr):
return ("X%x,4:" % addr).encode("ascii")
# Set the 'X' packet to the remote target to set a global variable.
# Checks that we can send byte values.