Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: k4lizen <k4lizen@proton.me>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: [PATCH]  [gdb/docs] use a clearer example for gdb lexing
Date: Mon, 28 Sep 2026 23:21:40 +0000	[thread overview]
Message-ID: <JjReHsyUaIf9SKN2vDhyWrBGwFeVxKsYv9ACUvo7xa2Y5btUQPuB9Gl1VJb-Dln7HJc1pPFNixu7zn0drwF11Dl_CcgG-PPfPcZeIgSUWYE=@proton.me> (raw)

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

                 reply	other threads:[~2026-09-28 23:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='JjReHsyUaIf9SKN2vDhyWrBGwFeVxKsYv9ACUvo7xa2Y5btUQPuB9Gl1VJb-Dln7HJc1pPFNixu7zn0drwF11Dl_CcgG-PPfPcZeIgSUWYE=@proton.me' \
    --to=k4lizen@proton.me \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox