Generate-core file for remote target?

I am debugging the Codesourcery gdb version for ARM (i.e. arm-none-eabi-gdb) and trying to create a main file for later verification. OpenOCD is my goal for GDB. All gdb tell me when I run "gcore" or "generate-core-file", it is "Can not create corefile". Any suggestions? In general, is it possible to dump the kernel with a remote target?

+6
source share
1 answer

Not yet possible, but there is a promising discussion on the GDB mailing list here and here . Alternatively, perhaps you could try the following:

dump memory filename.bin start_addr end_addr restore filename.bin binary start_addr 

where you correctly fill in start_addr and end_addr. You will need to save the registers manually.

+8
source

Source: https://habr.com/ru/post/902685/


All Articles