From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31074 invoked by alias); 15 Jul 2008 18:52:49 -0000 Received: (qmail 31065 invoked by uid 22791); 15 Jul 2008 18:52:48 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate4.de.ibm.com (HELO mtagate4.de.ibm.com) (195.212.29.153) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 15 Jul 2008 18:52:27 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate4.de.ibm.com (8.13.8/8.13.8) with ESMTP id m6FIqFtA178980 for ; Tue, 15 Jul 2008 18:52:15 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m6FIqFcs3702936 for ; Tue, 15 Jul 2008 20:52:15 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m6FIqEGW022338 for ; Tue, 15 Jul 2008 20:52:15 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m6FIqECB022335; Tue, 15 Jul 2008 20:52:14 +0200 Message-Id: <200807151852.m6FIqECB022335@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Tue, 15 Jul 2008 20:52:14 +0200 Subject: Re: [RFA] Patch for PR gdb/2477 To: ppluzhnikov@google.com (Paul Pluzhnikov) Date: Tue, 15 Jul 2008 18:52:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <8ac60eac0807141111r58b047a3j7fd4a39080b1be19@mail.gmail.com> from "Paul Pluzhnikov" at Jul 14, 2008 11:11:59 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2008-07/txt/msg00315.txt.bz2 Paul Pluzhnikov wrote: > I've also added a "non-zero but invalid" pointer test at ~0UL. > Is there a "canonical" invalid address I should be testing instead? This test fails on spu-elf: + gamma.c1 = 0; gamma.c2 = (A *) ~0UL; +gdb_test "p acp->c2" "\\(A \\*\\) 0xf+" because our pointer-to-address conversion mimics the wrap-around behaviour of the SPU hardware's local store access: all addresses will wrap around modulo 256 KB. The c2 pointer will therefore show up as 0x3ffff: p acp->c2^M $10 = (A *) 0x3ffff^M (gdb) FAIL: gdb.cp/class2.exp: p acp->c2 Any suggestions how to fix this? Bye, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com