* [PATCH] [gdb/docs] use a clearer example for gdb lexing
@ 2026-09-28 23:21 k4lizen
0 siblings, 0 replies; only message in thread
From: k4lizen @ 2026-09-28 23:21 UTC (permalink / raw)
To: gdb-patches
The old one raised a SyntaxWarning, and this one
allows the reader to focus on the GDB lexing
without having to think about what python is
doing.
Signed-off-by: k4lizen <k4lizen@proton.me>
---
gdb/doc/python.texi | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gdb/doc/python.texi b/gdb/doc/python.texi
index d86d679c35d..ddb347361f7 100644
--- a/gdb/doc/python.texi
+++ b/gdb/doc/python.texi
@@ -4698,8 +4698,8 @@ Arguments are separated by spaces and may be quoted.
Example:
@smallexample
-print(gdb.string_to_argv ("1 2\ \\\"3 '4 \"5' \"6 '7\""))
-['1', '2 "3', '4 "5', "6 '7"]
+print(gdb.string_to_argv (r"""1 2\ \"3 "4 '5" '6 "7'"""))
+['1', '2 "3', "4 '5", '6 "7']
@end smallexample
@end defun
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-28 23:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28 23:21 [PATCH] [gdb/docs] use a clearer example for gdb lexing k4lizen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox