Problem with breakpoint addresses

Andrew STUBBS andrew.stubbs@st.com
Mon Oct 30 16:18:00 GMT 2006


Sorry it's taken me a little while to get back to this.

Daniel Jacobowitz wrote:
> Secondly, this is just our use of CORE_ADDR as a native arithmetic type
> coming home to byte us.  We knew it would someday.  I think you should
> figure out where the sign extended CORE_ADDR was created, and why.
> I hope it was in value_as_address.  This isn't a right final fix, but
> could you see if setting gdbarch_integer_to_address to a function that
> always uses extract_unsigned_integer helps?

This fix does indeed solve the problem. Thanks.

Why do you think this isn't the right final fix? I can't think of an 
example of why this wouldn't always work until SH5, but the fix need not 
affect that.

Andrew



More information about the Gdb mailing list