This is the mail archive of the
mailing list for the GDB project.
Re: Dump to a file
I had the exact same need some time ago. I solved it by adding
a command. You can find my posts (including the patch) here:
Perhaps a better way of doing the exact same thing exists in gdb
Anyway, hope it helps!
Paleologos Spanos wrote:
> Is there a macro or something similar in GDB so as to be able to copy the
> value of an array or a structure from the gdb to a file?
> Basically,I have an application running in a platform and I have the gdb
> on the host.So,I want after the execution of the programm to have a file
> with the values of a specific structure etc..
> So,instead of only monitoring the value of a variable to dump this to a
> file as well.
> Thank you .
Dan Hovang email@example.com +46 733 451 427
WeSpot AB Sölvegatan 41 223 70 Lund, Sweden