* store the contents of target’s RAM in frequent intervals
@ 2008-12-05 8:39 Sandeep222
2008-12-05 19:02 ` Michael Snyder
0 siblings, 1 reply; 3+ messages in thread
From: Sandeep222 @ 2008-12-05 8:39 UTC (permalink / raw)
To: gdb
Hi,
I would like to know if there is any possibility for adding
functionality in GDB which could store the contents of target’s RAM in
frequent intervals into hard disk so that, when accidentally switched off or
shut down of an embedded target, we can resume the execution of the program
from where it earlier stopped (i.e previous save point). Conceptually It is
some what similar to the Hibernate function used in Windows xp, Service pack
2. I was thinking of inducing this functionality for embedded targets in
particular.
Need araises when a test program is made to run for days and
probably weeks. Suppose, if someone switches off the unit on say 2nd day, it
should be able to continue from that point. Else, the program is made to run
all over again resulting in wastage of time.
Regards,
Sandeep
--
View this message in context: http://www.nabble.com/store-the-contents-of-target%E2%80%99s-RAM-in-frequent-intervals-tp20849726p20849726.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: store the contents of target’s RAM in frequent intervals
2008-12-05 8:39 store the contents of target’s RAM in frequent intervals Sandeep222
@ 2008-12-05 19:02 ` Michael Snyder
2008-12-06 10:20 ` Nicholas Mc Guire
0 siblings, 1 reply; 3+ messages in thread
From: Michael Snyder @ 2008-12-05 19:02 UTC (permalink / raw)
To: Sandeep222; +Cc: gdb
Sandeep222 wrote:
> Hi,
> I would like to know if there is any possibility for adding
> functionality in GDB which could store the contents of targetâs RAM in
> frequent intervals into hard disk so that, when accidentally switched off or
> shut down of an embedded target, we can resume the execution of the program
> from where it earlier stopped (i.e previous save point). Conceptually It is
> some what similar to the Hibernate function used in Windows xp, Service pack
> 2. I was thinking of inducing this functionality for embedded targets in
> particular.
> Need araises when a test program is made to run for days and
> probably weeks. Suppose, if someone switches off the unit on say 2nd day, it
> should be able to continue from that point. Else, the program is made to run
> all over again resulting in wastage of time.
Sounds a lot like a checkpoint. ;-)
GDB has checkpoint functionality for some native operating systems
(eg. Linux), but not at present for remote (embedded) targets.
It would be cool, but potentially expensive, eg. if it involved
downloading the entire contents of target memory.
Some investment in developing a smart debug agent that ran on the
target side might result in the ability to save, eg., just the parts
of memory that have changed since the last checkpoint.
I've also thought about this in terms of generating a target
core file -- which would also involve sucking a bunch of target
memory over to the host, but in this context, we could use
section start/end addresses at least for some of it, and then
we would need to account for stack and heap...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: store the contents of target’s RAM in frequent intervals
2008-12-05 19:02 ` Michael Snyder
@ 2008-12-06 10:20 ` Nicholas Mc Guire
0 siblings, 0 replies; 3+ messages in thread
From: Nicholas Mc Guire @ 2008-12-06 10:20 UTC (permalink / raw)
To: Michael Snyder; +Cc: Sandeep222, gdb
> Sandeep222 wrote:
> > Hi,
> > I would like to know if there is any possibility for adding
> > functionality in GDB which could store the contents of target’s RAM in
> > frequent intervals into hard disk so that, when accidentally switched off or
> > shut down of an embedded target, we can resume the execution of the program
> > from where it earlier stopped (i.e previous save point). Conceptually It is
> > some what similar to the Hibernate function used in Windows xp, Service pack
> > 2. I was thinking of inducing this functionality for embedded targets in
> > particular.
This sounds like BLCR - Berkely Lab Checkpoint Restart -
http://ftg.lbl.gov/CheckpointRestart/CheckpointRestart.shtml
works very nice on embedded targets especially for errors that dont
reproduce well or take days/weeks to appear. This is implemented as
a set of loadable modules for 2.6 (up to 2.6.26 I think)
This solution is though limited to GNU/Linux - so I dont know if that fits
for you.
hofrat
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-06 10:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-05 8:39 store the contents of target’s RAM in frequent intervals Sandeep222
2008-12-05 19:02 ` Michael Snyder
2008-12-06 10:20 ` Nicholas Mc Guire
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox