This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Dump to a file


Hi,

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:

http://sources.redhat.com/ml/gdb/2000-q1/msg00033.html

Perhaps a better way of doing the exact same thing exists in gdb
today.

Anyway, hope it helps!

Dan

Paleologos Spanos wrote:
> 
>  Hi,
> 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   dan@wespot.com   +46 733 451 427
WeSpot AB    Sölvegatan 41    223 70 Lund, Sweden


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]