From: Michael Snyder <msnyder@redhat.com>
To: Stan Shebs <shebs@apple.com>
Cc: GDB Patches <gdb-patches@sources.redhat.com>, gdb@sources.redhat.com
Subject: Re: [RFC] a prototype checkpoint-restart using core files
Date: Fri, 18 Nov 2005 08:18:00 -0000 [thread overview]
Message-ID: <437D4C57.10906@redhat.com> (raw)
Stan Shebs wrote:
> Michael Snyder wrote:
>> Folks, this isn't for commit, just for discussion.
>>
>> Attached is an experimental patch that adds a command
>> "restore-core-file" or "rcore", which is the inverse of
>> "generate-core-file" (gcore). Instead of copying the
>> memory and register state of a process into a file,
>> it takes an existing corefile, and copies its memory
>> and register state into the child process.
>
> My prototype is even lamer :-) I use target read/write
> operations to collect state - but it can step backwards.
Don't beat up on yourself -- gcore works by using
target read and write. It's just a convenient
file format for saving target state.
> An improved version in the works uses vfork() to make
> core images more cheaply.
Aha! Linux fork is similar to vfork, in that it does
not immediately make a copy of user memory. Did you
have a chance to look at my later patch based on fork?
> One idea I've considered is getting the OS to set up
> some kind of notification at system calls, and then use
> it to warn the user who tries to resume the inferior
> after rolling back.
Yeah, ptrace on linux provides such a notification.
I know you don't have ptrace on your OS, but you might
think about mimicing the ptrace user interface, if only
so that you don't have to design one of your own. ;-)
Stan, do you remember the trace/replay utility that
Michael Chastain invented? I was thinking that would
come in pretty handy in this context.
Michael
next reply other threads:[~2005-11-18 3:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 8:18 Michael Snyder [this message]
-- strict thread matches above, loose matches on Subject: below --
2005-11-03 1:55 Michael Snyder
2005-11-07 4:01 ` Daniel Jacobowitz
2005-11-07 14:57 ` Eli Zaretskii
2005-11-07 19:43 ` Mark Kettenis
2005-11-07 19:50 ` Daniel Jacobowitz
2005-11-07 20:56 ` Michael Snyder
2005-11-07 20:43 ` Michael Snyder
2005-11-07 22:07 ` Eli Zaretskii
2005-11-08 6:05 ` Michael Snyder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=437D4C57.10906@redhat.com \
--to=msnyder@redhat.com \
--cc=gdb-patches@sources.redhat.com \
--cc=gdb@sources.redhat.com \
--cc=shebs@apple.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox