This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Unset tcl variable addr to avoid clashing
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Doug Evans <dje at google dot com>, Yao Qi <qiyaoltc at gmail dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Sun, 26 Apr 2015 15:44:47 -0400
- Subject: Re: [RFC] Unset tcl variable addr to avoid clashing
- Authentication-results: sourceware.org; auth=none
- References: <1428666671-12926-1-git-send-email-qiyaoltc at gmail dot com> <87r3rqppgq dot fsf at redhat dot com> <CADPb22QcfoJqK15FjHSbownWbT-0FpJ3KLQWdOCe7Ud7B_0oAQ at mail dot gmail dot com> <552B7DA3 dot 5070103 at redhat dot com> <87r3rmjzi5 dot fsf at redhat dot com>
On Tuesday, April 14 2015, I wrote:
> What do you think of the following patch (obvious, but I decided to send
> anyway)? This is just to make things 100% correct, and I don't think
> it's worth reverting the renaming.
FWIW, I've checked the patch in.
> I will also expand/fix the update I did in the wiki page.
And I've also updated the wiki.
> Thanks,
>
> --
> Sergio
> GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
> Please send encrypted e-mail if possible
> http://sergiodj.net/
>
> gdb/testsuite/ChangeLog:
> 2015-04-14 Sergio Durigan Junior <sergiodj@redhat.com>
>
> * gdb.base/coredump-filter.exp: Clear variable "coredump_var_addr"
> before using it.
>
> diff --git a/gdb/testsuite/gdb.base/coredump-filter.exp b/gdb/testsuite/gdb.base/coredump-filter.exp
> index f872de0..72f756a 100644
> --- a/gdb/testsuite/gdb.base/coredump-filter.exp
> +++ b/gdb/testsuite/gdb.base/coredump-filter.exp
> @@ -170,6 +170,7 @@ gdb_test_multiple "print/x &main" "getting main's address" {
>
> # Obtain the address of each variable that will be checked on each
> # case.
> +set coredump_var_addr ""
> foreach item $all_anon_corefiles {
> foreach name [list [lindex $item 3] [lindex $item 4]] {
> set test "print/x $name"
--
Sergio
GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36
Please send encrypted e-mail if possible
http://sergiodj.net/