Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <dan@codesourcery.com>
To: Mark Kettenis <mark.kettenis@xs4all.nl>
Cc: gdb@sourceware.org
Subject: Re: CORE_ADDR representation
Date: Thu, 18 Feb 2010 13:43:00 -0000	[thread overview]
Message-ID: <20100218134345.GB17163@caradoc.them.org> (raw)
In-Reply-To: <201002181017.o1IAHDdS030942@glazunov.sibelius.xs4all.nl>

On Thu, Feb 18, 2010 at 11:17:14AM +0100, Mark Kettenis wrote:
> Perhaps we should introduce a function to "normalize" addresses (mask
> off high-bits or sign extend) that we call in places that need it?
> It'd be a no-op for a N-bit debugger debugging an N-bit target, so
> you'd be able to call it unconditionally.  That should clear away
> quite a bit of clutter.

That does sound better than the status quo.  I worry that we'll have
otherwise the same trouble with figuring out places that 'need' it...

Hmm.  I wonder if we could use a static analysis tool for this.  It
sounds like a classic example of a static problem.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2010-02-18 13:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-18  4:44 Daniel Jacobowitz
2010-02-18  5:42 ` Stan Shebs
2010-02-18 14:11   ` Daniel Jacobowitz
2010-02-18 23:04     ` Tom Tromey
2010-02-18 10:18 ` Mark Kettenis
2010-02-18 13:43   ` Daniel Jacobowitz [this message]
2010-02-19 19:27     ` Tom Tromey
2010-02-18 10:34 ` Jan Kratochvil
2010-02-18 13:41   ` Daniel Jacobowitz
2010-02-18 13:53     ` Jan Kratochvil

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=20100218134345.GB17163@caradoc.them.org \
    --to=dan@codesourcery.com \
    --cc=gdb@sourceware.org \
    --cc=mark.kettenis@xs4all.nl \
    /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