GP-0 Temporary fix for Client (client.py) construction use to pass

missing description arg as TBD.
This commit is contained in:
ghidra1 2023-12-03 18:34:02 -05:00
parent df05b6b8fe
commit 91de3c90e7
3 changed files with 4 additions and 4 deletions

View file

@ -174,7 +174,7 @@ def ghidra_trace_listen(address='0.0.0.0:0'):
c, (chost, cport) = s.accept() c, (chost, cport) = s.accept()
s.close() s.close()
print("Connection from {}:{}\n".format(chost, cport)) print("Connection from {}:{}\n".format(chost, cport))
STATE.client = Client(c, methods.REGISTRY) STATE.client = Client(c, "TBD", methods.REGISTRY)
except ValueError: except ValueError:
raise RuntimeError("port must be numeric") raise RuntimeError("port must be numeric")

View file

@ -240,7 +240,7 @@ def ghidra_trace_listen(address=None, *, is_mi, **kwargs):
c, (chost, cport) = s.accept() c, (chost, cport) = s.accept()
s.close() s.close()
gdb.write("Connection from {}:{}\n".format(chost, cport)) gdb.write("Connection from {}:{}\n".format(chost, cport))
STATE.client = Client(c, methods.REGISTRY) STATE.client = Client(c, "TBD", methods.REGISTRY)
except ValueError: except ValueError:
raise gdb.GdbError("port must be numeric") raise gdb.GdbError("port must be numeric")

View file

@ -191,7 +191,7 @@ def ghidra_trace_connect(debugger, command, result, internal_dict):
try: try:
c = socket.socket() c = socket.socket()
c.connect((host, int(port))) c.connect((host, int(port)))
STATE.client = Client(c, methods.REGISTRY) STATE.client = Client(c, "TBD", methods.REGISTRY)
except ValueError: except ValueError:
raise RuntimeError("port must be numeric") raise RuntimeError("port must be numeric")
@ -228,7 +228,7 @@ def ghidra_trace_listen(debugger, command, result, internal_dict):
c, (chost, cport) = s.accept() c, (chost, cport) = s.accept()
s.close() s.close()
print("Connection from {}:{}\n".format(chost, cport)) print("Connection from {}:{}\n".format(chost, cport))
STATE.client = Client(c, methods.REGISTRY) STATE.client = Client(c, "TBD", methods.REGISTRY)
except ValueError: except ValueError:
raise RuntimeError("port must be numeric") raise RuntimeError("port must be numeric")