gdb - generate-core-file for remote target?
Asked Answered
R

1

6

I'm debugging with the Codesourcery version of gdb for ARM (i.e. arm-none-eabi-gdb) and attempting to generate a corefile for later inspection. OpenOCD is my GDB target. All gdb tells me when I run 'gcore' or 'generate-core-file' is "Can't create corefile". Any suggestions? In general is it possible to do a core dump with a remote target?

Reinhard answered 29/11, 2011 at 19:34 Comment(0)
E
8

It doesn't seem possible yet, but there is some promising discussion on the GDB mailing list here and here. As an alternative maybe you could try the following?

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

where you fill in start_addr and end_addr appropriately. You'd have to save registers by hand.

Every answered 24/1, 2012 at 20:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.