diff options
author | Tom Tromey <tom@tromey.com> | 2023-12-12 22:49:52 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-12-30 12:21:44 -0700 |
commit | 1f1c84ddf7bf810c18632806a358f61e824be18a (patch) | |
tree | ab745637a584efa6096a7ff32ae8dd7b4dbba890 /gdb/testsuite | |
parent | 11e73fe731c553171f09b48636dfc347cb3ac266 (diff) | |
download | gdb-1f1c84ddf7bf810c18632806a358f61e824be18a.zip gdb-1f1c84ddf7bf810c18632806a358f61e824be18a.tar.gz gdb-1f1c84ddf7bf810c18632806a358f61e824be18a.tar.bz2 |
Add keywords to TuiWindow.write
The gdb docs promise that methods with more than two or more arguments
will accept keywords. However, I found that TuiWindow.write didn't
allow them. This patch adds the missing support.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/gdb.python/tui-window.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/tui-window.py b/gdb/testsuite/gdb.python/tui-window.py index dc72cc4..47c4403 100644 --- a/gdb/testsuite/gdb.python/tui-window.py +++ b/gdb/testsuite/gdb.python/tui-window.py @@ -32,7 +32,8 @@ class TestWindow: self.win.erase() w = self.win.width h = self.win.height - self.win.write("Test: " + str(self.count) + " " + str(w) + "x" + str(h)) + self.win.write(string="Test: " + str(self.count) + " " + str(w) + "x" + str(h), + full_window=False) self.count = self.count + 1 # Tries to delete the title attribute. GDB will throw an error. |