From: Tom Tromey <tom@tromey.com>
To: Keith Seitz via Gdb-patches <gdb-patches@sourceware.org>
Cc: Keith Seitz <keiths@redhat.com>
Subject: Re: [PATCH] Allow strings with printf/eval
Date: Mon, 24 Apr 2023 11:12:57 -0600 [thread overview]
Message-ID: <87r0s9xkyu.fsf@tromey.com> (raw)
In-Reply-To: <20230423172131.1104908-1-keiths@redhat.com> (Keith Seitz via Gdb-patches's message of "Sun, 23 Apr 2023 10:21:31 -0700")
>>>>> "Keith" == Keith Seitz via Gdb-patches <gdb-patches@sourceware.org> writes:
Keith> (gdb) printf "%s\n", "hello"
Keith> evaluation of this expression requires the target program to be active
This is https://sourceware.org/bugzilla/show_bug.cgi?id=13098
Keith> - if (value->type ()->code () != TYPE_CODE_PTR
Keith> - && value->lval () == lval_internalvar
Keith> + if (((value->type ()->code () != TYPE_CODE_PTR && value->lval () == lval_internalvar)
Keith> + || (value->type ()->code () == TYPE_CODE_ARRAY && value->lval () == not_lval))
I wonder if lval check is necessary here.
Tom
next prev parent reply other threads:[~2023-04-24 17:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-23 17:21 Keith Seitz
2023-04-24 17:12 ` Tom Tromey [this message]
2023-04-25 15:50 ` Keith Seitz
2023-04-25 20:21 ` Tom Tromey
2023-04-28 17:45 ` Keith Seitz
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=87r0s9xkyu.fsf@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
--cc=keiths@redhat.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).