This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Problem with breakpoint addresses
On Mon, Oct 30, 2006 at 04:54:51PM +0000, Andrew STUBBS wrote:
> Daniel Jacobowitz wrote:
> >Some day, I think we're going to need to do as Mark and Michael
> >suggested; stop using CORE_ADDR so indiscriminately as a convenient
> >integer type. In the mean time, perhaps everywhere that doesn't
> >define integer_to_address should get a better default, or the fallback
> >case in value_as_address should be changed, so that this is fixed
> >equally on other platforms.
>
> Hmmm, well some of those platforms, such as sh64, like the current
> default behaviour as it is.
They should explicitly have a sign extending method set then. See
MIPS. Now it depends if your register has type "int" or "uint",
which really shouldn't matter.
> Perhaps the correct fix is to define a default address width for each
> target variant, but that seems like more work than is really necessary.
>
> Should I post my patch or work up something else?
Dunno. Fixing SH is better than fixing nothing.
--
Daniel Jacobowitz
CodeSourcery