From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31415 invoked by alias); 29 Nov 2012 19:19:15 -0000 Received: (qmail 31403 invoked by uid 22791); 29 Nov 2012 19:19:14 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,MSGID_FROM_MTA_HEADER,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e06smtp11.uk.ibm.com (HELO e06smtp11.uk.ibm.com) (195.75.94.107) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Nov 2012 19:19:08 +0000 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 29 Nov 2012 19:19:07 -0000 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 29 Nov 2012 19:19:05 -0000 Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id qATJIvq567043366 for ; Thu, 29 Nov 2012 19:18:57 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id qATJJ4hX025044 for ; Thu, 29 Nov 2012 12:19:04 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id qATJJ379024978; Thu, 29 Nov 2012 12:19:03 -0700 Message-Id: <201211291919.qATJJ379024978@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 29 Nov 2012 20:19:03 +0100 Subject: Re: RFA: handle "MiniDebuginfo" section To: tromey@redhat.com (Tom Tromey) Date: Thu, 29 Nov 2012 19:19:00 -0000 From: "Ulrich Weigand" Cc: palves@redhat.com (Pedro Alves), dje@google.com (Doug Evans), gdb-patches@sourceware.org In-Reply-To: <871ufggoh9.fsf@fleche.redhat.com> from "Tom Tromey" at Nov 26, 2012 12:20:50 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit x-cbid: 12112919-5024-0000-0000-00000488C6B4 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 X-SW-Source: 2012-11/txt/msg00890.txt.bz2 Tom Tromey wrote: > +# Run a pipeline of processes through 'run'. > +# TEST is the base name of the test, it is modified and passed to 'run'. > +# Each subsequent argument is a list of the form {PROGRAM [ARG]...}. > +# It is passed to 'run'. However, before being passed, if input and output > +# files are not specified in the list, then this proc provides them. > +# Each program in the pipeline takes its input from the previous > +# program's output. > +proc pipeline {test args} { > + global pipeline_counter > + > + set input_file {} > + foreach arglist $args { > + verbose "raw args are $arglist" > + lassign $arglist program arguments input output > + > + if {$input == ""} { > + set input $input_file > + } > + if {$output == ""} { > + set output [standard_output_file pipe.[pid].$pipeline_counter] > + incr pipeline_counter > + } > + verbose "cooked args are [list $program $arguments $input $output]" > + > + if {[run "$test - invoke $program" $program $arguments \ > + $input $output]} { > + return -1 > + } > + > + set input_file $output > + } > + return 0 > +} > + > +# Extract the dynamic symbols from the main binary, there is no need > +# to also have these in the normal symbol table. > +remote_file host delete ${binfile}.dynsyms > +if {[pipeline "nm -D" \ > + [list [transform nm] "-D ${binfile} --format=posix --defined-only"] \ > + [list awk "\\{print\\ \\\$1\\}"] \ > + [list sort "" "" "${binfile}.dynsyms"]]} { > + return -1 > +} This causes DejaGnu to abort for me with: ERROR: (DejaGnu) proc "lassign {nm {-D /home/uweigand/fsf/gdb-head-build/gdb/testsuite/gdb.base/gnu-debugdata --format=posix --defined-only}} program arguments input output" does not exist. I'm not really familiar enough with DejaGnu/Tcl to quite understand what's going on here ... Any thoughts? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com