From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15303 invoked by alias); 2 May 2014 20:57:07 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 15286 invoked by uid 89); 2 May 2014 20:57:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 02 May 2014 20:57:05 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s42Kv4LG004111 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Fri, 2 May 2014 16:57:04 -0400 Received: from psique ([10.3.113.6]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s42Kv1Yv023033 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 2 May 2014 16:57:03 -0400 From: Sergio Durigan Junior To: Pedro Alves Cc: GDB Patches Subject: Re: [PATCH 1/2] Fix PR breakpoints/16889: gdb segfaults when printing ASM SDT arguments References: <1398981131-11720-1-git-send-email-sergiodj@redhat.com> <1398981131-11720-2-git-send-email-sergiodj@redhat.com> <53636901.9090601@redhat.com> <5363EA5A.1000209@redhat.com> X-URL: http://www.redhat.com Date: Fri, 02 May 2014 20:57:00 -0000 In-Reply-To: <5363EA5A.1000209@redhat.com> (Pedro Alves's message of "Fri, 02 May 2014 19:56:26 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00024.txt.bz2 On Friday, May 02 2014, Pedro Alves wrote: > FYI, with {} instead of [list ...] one can avoid the backslashes. > That is, one can write: > > foreach probe_name {foo bar foo_prefix bar_prefix} \ > probe_val {42 42 42 42} \ > probe_reg_val {"$rsp" "$rbp - 8" "$rsp" "$rbp - 8"} { > > instead of: > > foreach probe_name [list "foo" "bar" "foo_prefix" "bar_prefix"] \ > probe_val [list "42" "42" "42" "42"] \ > probe_reg_val [list "\$rsp" "\$rbp - 8" "\$rsp" "\$rbp - 8"] { > with_test_prefix $probe_name { > > Just a suggestion, it doesn't matter at all. Thanks for the suggestion. I actually knew about it, but believe it or not I prefer to use [list ...] instead of { } in this case, because I think it is more elegant. Go figure... Anyway, pushed: Thanks, -- Sergio