From: Pedro Alves <palves@redhat.com>
To: Tom de Vries <tdevries@suse.de>, gdb-patches@sourceware.org
Subject: Re: [PATCH][gdb/testsuite] Remove dependence on tcl_unknown
Date: Wed, 17 Jun 2020 14:28:38 +0100 [thread overview]
Message-ID: <f943679e-544b-f733-b1ba-fedebe558ee4@redhat.com> (raw)
In-Reply-To: <20200617131855.GA1705@delia>
On 6/17/20 2:18 PM, Tom de Vries wrote:
>
> +# Create gdb_tcl_unknown, a copy tcl's ::unknown, provided it's present as a
> +# proc.
> +set temp [interp create]
> +if { [interp eval $temp "info procs ::unknown"] != "" } {
> + set old_args [interp eval $temp "info args ::unknown"]
> + set old_body [interp eval $temp "info body ::unknown"]
> + eval proc gdb_tcl_unknown {$old_args} {$old_body}
> +}
> +interp delete $temp
> +unset temp
Smart.
LGTM.
Thanks,
Pedro Alves
prev parent reply other threads:[~2020-06-17 13:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-17 13:18 Tom de Vries
2020-06-17 13:28 ` Pedro Alves [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=f943679e-544b-f733-b1ba-fedebe558ee4@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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