[<<][arm][>>][..]
Fri Jun 24 00:55:12 CEST 2011

Cannot access memory at address 0xffffffff

I get this error after many commands, including "set $pc = 0".

Seems to be because GDB requests that address.  I don't know where it
comes from.  When an image file is loaded it doesn't seem to be a
problem.

Switching on debug_level 3, the correct operation is:


Debug: 167 336068 gdb_server.c:2201 gdb_input_inner(): received packet: 'g'
Debug: 168 336068 gdb_server.c:2201 gdb_input_inner(): received packet: 'm0,4'
Debug: 169 336068 gdb_server.c:1278 gdb_read_memory_packet(): addr: 0x00000000, len: 0x00000004
Debug: 170 336068 target.c:1443 target_read_buffer(): reading buffer of 4 byte at 0x00000000
Debug: 171 336068 arm7_9_common.c:2270 arm7_9_read_memory(): address: 0x00000000, size: 0x00000004, count: 0x00000001


Actually this skips the register set operation, probably because the
$pc is already set to 0.  A register set looks like this:


Debug: 241 552998 gdb_server.c:2201 gdb_input_inner(): received packet: 'Pf=00000000'
Debug: 242 552998 gdb_server.c:1198 gdb_set_register_packet(): -


However, when there is no image loaded, GDB tries to read from 0xFFFFFFFF.


Debug: 567 761913 gdb_server.c:2201 gdb_input_inner(): received packet: 'mffffffff,1'
Debug: 568 761913 gdb_server.c:1278 gdb_read_memory_packet(): addr: 0xffffffff, len: 0x00000001
Debug: 569 761913 target.c:1443 target_read_buffer(): reading buffer of 1 byte at 0xffffffff
Debug: 570 761913 arm7_9_common.c:2270 arm7_9_read_memory(): address: 0xffffffff, size: 0x00000001, count: 0x00000001
Debug: 571 761916 gdb_server.c:2201 gdb_input_inner(): received packet: 'g'
Debug: 572 761916 gdb_server.c:2201 gdb_input_inner(): received packet: 'm0,4'
Debug: 573 761916 gdb_server.c:1278 gdb_read_memory_packet(): addr: 0x00000000, len: 0x00000004
Debug: 574 761916 target.c:1443 target_read_buffer(): reading buffer of 4 byte at 0x00000000
Debug: 575 761916 arm7_9_common.c:2270 arm7_9_read_memory(): address: 0x00000000, size: 0x00000004, count: 0x00000001
Debug: 576 761918 gdb_server.c:2201 gdb_input_inner(): received packet: 'mffffffff,1'
Debug: 577 761918 gdb_server.c:1278 gdb_read_memory_packet(): addr: 0xffffffff, len: 0x00000001
Debug: 578 761918 target.c:1443 target_read_buffer(): reading buffer of 1 byte at 0xffffffff
Debug: 579 761918 arm7_9_common.c:2270 arm7_9_read_memory(): address: 0xffffffff, size: 0x00000001, count: 0x00000001




[Reply][About]
[<<][arm][>>][..]