This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with breakpoint addresses


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]