From: Tom Tromey <tom@tromey.com>
To: oltolm <oleg.tolmatcev@gmail.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v4] gdb/dap: add option commandEscapePrefix
Date: Wed, 19 Nov 2025 11:54:24 -0700 [thread overview]
Message-ID: <87y0o1q2e7.fsf@tromey.com> (raw)
In-Reply-To: <20251116142613.1736-2-oleg.tolmatcev@gmail.com> (oltolm's message of "Sun, 16 Nov 2025 15:26:14 +0100")
>>>>> oltolm <oleg.tolmatcev@gmail.com> writes:
> The escape prefix to use for executing regular GDB commands in the Debug
> Console, instead of printing variables. Defaults to an empty string. If it's
> an empty string, then all expressions in the Debug Console are treated as
> regular GDB commands.
Thanks.
> - result.append({"label": completion, "length": len(completion)})
> + result.append({"label": get_command_escape_prefix() + completion, "length": len(completion)})
...
> for match in mi_result["matches"]:
> - result.append({"label": match, "length": len(match)})
> + result.append({"label": get_command_escape_prefix() + match, "length": len(match)})
Does the length of the prefix need to be added to the "length" value?
Tom
prev parent reply other threads:[~2025-11-19 18:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-16 14:26 oltolm
2025-11-16 14:31 ` Eli Zaretskii
2025-11-16 14:33 ` Oleg Tolmatcev
2025-11-16 15:03 ` Eli Zaretskii
2025-11-19 18:52 ` Tom Tromey
2025-11-19 18:54 ` Tom Tromey [this message]
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=87y0o1q2e7.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=oleg.tolmatcev@gmail.com \
/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