From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28508 invoked by alias); 22 Jan 2014 13:15:22 -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 28491 invoked by uid 89); 22 Jan 2014 13:15:19 -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,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; Wed, 22 Jan 2014 13:15:14 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s0MDF7V5024822 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 22 Jan 2014 08:15:07 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s0MDF5Ke019402; Wed, 22 Jan 2014 08:15:05 -0500 Message-ID: <52DFC458.4080105@redhat.com> Date: Wed, 22 Jan 2014 13:15:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Andreas Arnez CC: Edjunior Barbosa Machado , Jan Kratochvil , gdb-patches@sourceware.org, Ulrich Weigand , Andreas Krebbel , Omair Javaid Subject: Re: [PATCH] Fix possible alignment issue with dw2-dir-file-name test case References: <87a9f65p73.fsf@br87z6lw.de.ibm.com> <52CFD97A.4040009@redhat.com> <87mwj352p5.fsf@br87z6lw.de.ibm.com> <20140110145327.GA23695@host2.jankratochvil.net> <52D014B7.6040305@redhat.com> <52D6FEA9.6010605@linux.vnet.ibm.com> <52D7EEA9.4030006@redhat.com> <874n5232yj.fsf@br87z6lw.de.ibm.com> <52D971DA.90807@redhat.com> <52D97460.1040206@gmail.com> <87zjmq1lmv.fsf@br87z6lw.de.ibm.com> In-Reply-To: <87zjmq1lmv.fsf@br87z6lw.de.ibm.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2014-01/txt/msg00856.txt.bz2 On 01/20/2014 07:47 PM, Andreas Arnez wrote: > * On s390x, the test case fails like this: > > Breakpoint 1, 0x00000000800005d2 in func (param= variable: Cannot access memory at address 0x0>) > (gdb) p/x param > Cannot access memory at address 0x0 > > Note that the debug info looks correct, and all addresses fit into > four bytes. Still, the failure disappears when changing the DWARF > pointer size to 8. Thus it seems that the address size mismatch > causes confusion somewhere in GDB on big-endian systems. Hmm, yeah. A little odd that dw2-dir-file-name also uses .byte 4 and doesn't have this issue. > * On PPC64, 'func' and 'main' are function descriptors and don't point > to the actual code. Thus the usage of these symbols in > dw2-ifort-parameter-debug.S is broken (similar to what has been > discussed in the thread, I think). Thanks. I believe this alone would fix Thumb. I think this bit should go in as is (maybe with a comment), and independently of whatever is the fix for the 64-bit issue. -- Pedro Alves