From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30316 invoked by alias); 28 Jan 2014 16:01:59 -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 30307 invoked by uid 89); 28 Jan 2014 16:01:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: e06smtp14.uk.ibm.com Received: from e06smtp14.uk.ibm.com (HELO e06smtp14.uk.ibm.com) (195.75.94.110) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 28 Jan 2014 16:01:58 +0000 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 28 Jan 2014 16:01:54 -0000 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 28 Jan 2014 16:01:52 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id E88FE17D8066 for ; Tue, 28 Jan 2014 16:02:10 +0000 (GMT) Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by b06cxnps4074.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s0SG1dZp45285482 for ; Tue, 28 Jan 2014 16:01:39 GMT Received: from d06av02.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s0SG1niV004254 for ; Tue, 28 Jan 2014 09:01:50 -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.14.4/NCO v10.0 AVin) with SMTP id s0SG1lJW004119; Tue, 28 Jan 2014 09:01:47 -0700 Message-Id: <201401281601.s0SG1lJW004119@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 28 Jan 2014 17:01:47 +0100 Subject: Re: [PATCH] testsuite: Fix gdb.dwarf2/dw2-case-insensitive.exp testcase for ppc64 To: emachado@linux.vnet.ibm.com (Edjunior Barbosa Machado) Date: Tue, 28 Jan 2014 16:01:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <1390488123-2421-1-git-send-email-emachado@linux.vnet.ibm.com> from "Edjunior Barbosa Machado" at Jan 23, 2014 12:42:02 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14012816-1948-0000-0000-0000079B01E4 X-SW-Source: 2014-01/txt/msg00998.txt.bz2 Edjunior Barbosa Machado wrote: > gdb.dwarf2/dw2-case-insensitive.exp has currently 1 test failing on ppc64: > > p fuNC_symtab^M > $2 = {} 0x10000694 ^M > (gdb) FAIL: gdb.dwarf2/dw2-case-insensitive.exp: p fuNC_symtab So I guess this happens because FUNC_lang_end ends up at the same address as FUNC_symtab? > This patch moves the label FUNC_lang_end to the end of the function scope, so > ppc64 can understand the following function (fuNC_symtab) correctly. I'm not sure if this is the correct fix ... the DWARF end label really should come after all the code in the function. If the problem is indeed that FUNC_lang_end is at the same location as FUNC_symtab, maybe a better fix would be to add some padding in between (e.g. a ".byte 0" after the FUNC_lang_end label)? Bye, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain Ulrich.Weigand@de.ibm.com