From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15081 invoked by alias); 29 Nov 2012 20:51:42 -0000 Received: (qmail 15064 invoked by uid 22791); 29 Nov 2012 20:51:40 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS,TW_BJ,TW_JC X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Nov 2012 20:51:34 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qATKpU48016162 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 29 Nov 2012 15:51:30 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id qATKpSaB000631 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 29 Nov 2012 15:51:29 -0500 From: Tom Tromey To: "Ulrich Weigand" Cc: palves@redhat.com (Pedro Alves), dje@google.com (Doug Evans), gdb-patches@sourceware.org Subject: Re: RFA: handle "MiniDebuginfo" section References: <87fw3s5i3x.fsf@fleche.redhat.com> <201211291932.qATJWlpH014043@d06av02.portsmouth.uk.ibm.com> Date: Thu, 29 Nov 2012 20:51:00 -0000 In-Reply-To: <201211291932.qATJWlpH014043@d06av02.portsmouth.uk.ibm.com> (Ulrich Weigand's message of "Thu, 29 Nov 2012 20:32:47 +0100 (CET)") Message-ID: <87ip8o3zfz.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00899.txt.bz2 >>>>> "Ulrich" == Ulrich Weigand writes: Tom> Can you try the appended? Ulrich> Yes, that works for me! Thanks for the quick fix! I'm going to check it in with this ChangeLog: 2012-11-29 Tom Tromey * gdb.base/gnu-debugdata.exp (run, pipeline): Don't use lassign. Ulrich> FAIL: gdb.base/gnu-debugdata.exp: objcopy 1 Ulrich> Apparently this happens because: Ulrich> objcopy -S --remove-section .gdb_index --remove-section .comment Ulrich> --keep-symbols=/home/uweigand/fsf/gdb-head-build/gdb/testsuite/gdb.base/gnu-debugdata.keep_symbols Ulrich> /home/uweigand/fsf/gdb-head-build/gdb/testsuite/gdb.base/gnu-debugdata Ulrich> /home/uweigand/fsf/gdb-head-build/gdb/testsuite/gdb.base/gnu-debugdata.mini_debuginfo Ulrich> returns a non-zero exit code since the original binary has no .gdb_index Ulrich> section (probably because the system compiler is old) ... My system doesn't make a .gdb_index by default. So it must be something else. Does your objcopy work if you omit that --remove-section? I wonder if it is an objcopy difference. Tom