[Lldb-commits] [lldb] [lldb] Add type hints to gdbclientutils.py and use abstract base class (PR #162172)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 8 04:12:12 PDT 2025
================
@@ -242,7 +245,7 @@ def qProcessInfo(self):
def qHostInfo(self):
return "ptrsize:8;endian:little;"
- def qEcho(self):
+ def qEcho(self, _: int):
----------------
DavidSpickett wrote:
There is another class that adds the parameter:
```
def qEcho(self, num):
resp = "qEcho:" + str(num)
if num >= 2:
# We have launched our program
self.started = True
return [resp, "T13"]
return resp
```
For documentation purposes, just call the parameter "num" then. All calls to qEcho( are passing a number so it should be fine to add the parameter here.
https://github.com/llvm/llvm-project/pull/162172
More information about the lldb-commits
mailing list