Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Ulrich Weigand" <uweigand@de.ibm.com>
To: ppluzhnikov@google.com (Paul Pluzhnikov)
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Patch for PR gdb/2477
Date: Tue, 15 Jul 2008 18:52:00 -0000	[thread overview]
Message-ID: <200807151852.m6FIqECB022335@d12av02.megacenter.de.ibm.com> (raw)
In-Reply-To: <8ac60eac0807141111r58b047a3j7fd4a39080b1be19@mail.gmail.com> from "Paul Pluzhnikov" at Jul 14, 2008 11:11:59 AM

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


  parent reply	other threads:[~2008-07-15 18:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-14 17:32 Paul Pluzhnikov
2008-07-14 17:43 ` Daniel Jacobowitz
2008-07-14 18:12   ` Paul Pluzhnikov
2008-07-14 18:21     ` Daniel Jacobowitz
2008-07-14 18:30       ` Paul Pluzhnikov
2008-07-15 18:52     ` Ulrich Weigand [this message]
2008-07-15 19:03       ` Daniel Jacobowitz
2008-07-15 19:16         ` Paul Pluzhnikov
2008-07-15 20:04           ` Ulrich Weigand
2008-07-15 19:04       ` Paul Pluzhnikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200807151852.m6FIqECB022335@d12av02.megacenter.de.ibm.com \
    --to=uweigand@de.ibm.com \
    --cc=gdb-patches@sourceware.org \
    --cc=ppluzhnikov@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox