Hi all,
I am trying to load ELF from GDB.

In GDB I am facing many :

Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...

And in OpenOCD messages similar to these :

Warn : 924 203092 gdb_server.c:649 gdb_get_packet_inner(): negative
acknowledgment, but no packet pending
Warn : 925 203092 gdb_server.c:649 gdb_get_packet_inner(): negative
acknowledgment, but no packet pending
Warn : 926 203092 gdb_server.c:649 gdb_get_packet_inner(): negative
acknowledgment, but no packet pending
Debug: 927 203092 gdb_server.c:2179 gdb_input_inner(): received
packet: 'X800ae690,3e00:<binary-data>'
Debug: 928 203092 gdb_server.c:1416 gdb_write_memory_binary_packet():
addr: 0x800ae690, len: 0x00003e00
Debug: 929 203092 target.c:1346 target_write_buffer(): writing buffer
of 15872 byte at 0x800ae690

Finally GDB completely looses synchronization, telling that program is
loaded, while OpenOCD is still loading.

In the end, I tried inspecting memory with GDB :

(gdb) x 0x80080000
0x80080000 <_start>:    Reply contains invalid hex digit 79

And on OpenOCD side :

Debug: 1424 710725 gdb_server.c:2181 gdb_input_inner(): received
packet: 'm80080000,4'
Debug: 1425 710725 gdb_server.c:1258 gdb_read_memory_packet(): addr:
0x80080000, len: 0x00000004
Debug: 1426 710725 target.c:1434 target_read_buffer(): reading buffer
of 4 byte at 0x80080000
Debug: 1427 710725 mips_m4k.c:853 mips_m4k_read_memory(): address:
0x80080000, size: 0x00000004, count: 0x00000001


For example, normal behavior (before load) was :
Debug: 452 51990 gdb_server.c:2181 gdb_input_inner(): received packet:
'm80080000,4'
Debug: 453 51990 gdb_server.c:1258 gdb_read_memory_packet(): addr:
0x80080000, len: 0x00000004
Debug: 454 51990 target.c:1434 target_read_buffer(): reading buffer of
4 byte at 0x80080000
Debug: 455 51990 mips_m4k.c:853 mips_m4k_read_memory(): address:
0x80080000, size: 0x00000004, count: 0x00000001

So, I do not see any difference.

What seems to be wrong here ?

Best regards,
Drasko
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to