From 1f1c84ddf7bf810c18632806a358f61e824be18a Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 12 Dec 2023 22:49:52 -0700 Subject: 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. --- gdb/testsuite/gdb.python/tui-window.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/testsuite/gdb.python/tui-window.py') 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. -- cgit v1.1