public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Farre <simon.farre.cx@gmail.com>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/DAP Few bug fixes & Evaluate Array Watch vars
Date: Tue, 20 Jun 2023 20:41:07 +0200	[thread overview]
Message-ID: <32a6bb3b-3542-2a49-5059-43749506b012@gmail.com> (raw)
In-Reply-To: <87fs6m2npn.fsf@tromey.com>

No, not necessarily, if we for instance is retrieving children of an 
array, or the expression
el[3]@7; then each "name" of the children will be, 1,2,3 ..., i.e. 
numbers. This will make displaying any of them in VSCode not work.

On 6/20/23 16:49, Tom Tromey wrote:
>>>>>> "Simon" == Simon Farre via Gdb-patches <gdb-patches@sourceware.org> writes:
> Simon> First of all, name of VariableReferences must always be of string type.
>
> Do you mean if it is not None?
>
> If so then the EvaluateResult change isn't needed.
> But if None shouldn't be accepted, then BaseReference.to_object could be
> changed.
>
> Did this cause a problem somewhere?
>
> Simon> The result[self.result_name] also f-strings the printer.to_string()
> Simon> value, because this can potentially be a LazyString (which is a Python
> Simon> object, not a string) and is not serializable by json.dumps.
>
> We've been avoiding f-strings because some LTS distros are stuck on
> versions of Python without them.  I think using str() is fine though.
>
> Tom

      reply	other threads:[~2023-06-20 18:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-20  8:15 Simon Farre
2023-06-20  8:25 ` Simon Farre
2023-06-20 14:49 ` Tom Tromey
2023-06-20 18:41   ` Simon Farre [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=32a6bb3b-3542-2a49-5059-43749506b012@gmail.com \
    --to=simon.farre.cx@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).