[Converted from Gnats 399] remote-sim.h defines SIM_ADDR using: /* Pick up CORE_ADDR_TYPE if defined (from gdb), otherwise use same value as gdb does (unsigned int - from defs.h). */ #ifndef CORE_ADDR_TYPE typedef unsigned int SIM_ADDR; #else typedef CORE_ADDR_TYPE SIM_ADDR; #endif The address isn't large enough (int is typically 32 bits) so doesn't hold 64 bit addresses. Suggest looking at bfd.h or sim/common/sim-types.h. The main thing is that this the remote-sim.h header can't depend on external configury (from defs.h or ...) Release: unknown
i wonder if we shouldn't change it to be 64-bit all the time the "length" arguments should probably also be adjusted as they're "int" atm too
(In reply to Mike Frysinger from comment #1) > i wonder if we shouldn't change it to be 64-bit all the time FWIW gdb switched CORE_ADDR to always be 64-bit a while ago.
ok, i'll change the address & length to 64-bit post GDB 13 release. a 64-bit address with a 32-bit length would mean being able to access only 4GiB at a time, and we def have programs nowadays that take up more than 4GiB.
should be fixed in latest tree for gdb-14+