Re: CORE_ADDR representation

Daniel Jacobowitz
2010-02-18T13:43:54Z

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