From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Pedro Alves <palves@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [RFC] Automatically append 'gdb/testsuite/boards' to DejaGnu's boards dir list.
Date: Sat, 31 Mar 2012 07:29:00 -0000 [thread overview]
Message-ID: <20120331072912.GA15237@host2.jankratochvil.net> (raw)
In-Reply-To: <20120331030221.8207.47982.stgit@brno.lan>
On Sat, 31 Mar 2012 05:02:21 +0200, Pedro Alves wrote:
> +++ b/gdb/testsuite/append_gdb_boards_dir
It should be in testsuite/lib/ , shouldn't it?
> +proc append_gdb_boards_dir { name1 name2 op } {
> + global srcdir
> + global boards_dir
> +
> + # The "boards/../boards" contortion accounts for the odd chance of
> + # someone wanting to point at GDB's boards dir in the global
> + # config before some other board dir, in which case we should not
> + # push it to the end of the list.
> + set gdb_boards_dir "${srcdir}/boards/../boards"
> +
> + # Keep our board dir last in the list.
> + set idx [lsearch $boards_dir "$gdb_boards_dir"]
lsearch -exact
> + set boards_dir [lreplace $boards_dir $idx $idx]
lreplace X -1 -1 seems not to modify X but according to the doc it seems to be
undefined. Suggesting one 'if' conditional, ale for the code documentation
purposes.
> + lappend boards_dir "${gdb_boards_dir}"
> +}
> +trace add variable "boards_dir" write append_gdb_boards_dir
There were some complaints on the list for features not compatible with
tcl-8.3, 'trace add' is not listed in tcl-8.3 doc:
http://www.tcl.tk/man/tcl8.3/TclCmd/trace.htm
Sure a great feature.
Thanks,
Jan
next prev parent reply other threads:[~2012-03-31 7:29 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-31 3:02 Pedro Alves
2012-03-31 7:29 ` Jan Kratochvil [this message]
2012-03-31 10:31 ` Pedro Alves
2012-04-17 17:52 ` [commit] " Pedro Alves
[not found] ` <CADPb22RuQ6=QQf=+9tCKn4WLDsyWDEV79kF_=Yx3nsDSEbfKoA@mail.gmail.com>
2012-04-02 8:57 ` Pedro Alves
2012-04-02 13:06 ` Joel Brobecker
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=20120331072912.GA15237@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@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