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]

Re: dump memory to file


On Aug 22, 11:25am, Per Bothner wrote:

> > I think it'd be nice to provide a more general solution.  I.e, I think
> > it'd be nice if GDB had a facility whereby output from subsequent
> > commands would be redirected to a file.
> 
> It might be nice to have a stateless option.  For example using a
> variant of the standard shell syntax for appending to a file:
> (gdb) >>FILENAME COMMAND
> For example:
> (gdb) >>/tmp/foo x/10000x 0x01000
> 
> Though it is also useful for it to span mutliple commands.  One could
> so that if there is no command:
> (gdb) >>FILENAME

I like this better than the syntax that I proposed.

Kevin


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