From: Andrew Cagney <cagney@redhat.com>
To: frysk <frysk@sourceware.org>
Subject: local vs remote; core vs exe vs ...
Date: Tue, 08 Jan 2008 18:55:00 -0000 [thread overview]
Message-ID: <4783C6A8.7020102@redhat.com> (raw)
Hi,
Lets consider one possible way that the user may be allowed to interact
with local/remote machines:
(fhpd) load /bin/bash
[0] /bin/bash
(fhpd) load remotemachine:/bin/bash
[1] remotemachine:/bin/bash
(fhpd) [0] start
[0] running /bin/bash
(fhpd) [1] start
[1] running /bin/bash on remotemachine
(fhpd)
and:
(fhpd) core remotemachine:/a/core/file
[0] remotemachine:/a/corefile
(fhpd) print i
(fhpd) start
[0] running /corefile/exe on remotemachine
and to specify a sysroot:
(fhpd) load remote:/bin/bash -sysroot /local/ia32
(fhpd) load /bin/bash -sysroot remote:/ia32
As always the questions are:
Does this look reasonable? ...?
What are the consequences?
1.
At present frysk has a Host specialized for each possible type of Proc:
core, exe, ptrace, utrace. If a CoreProc needs to be created, the
LinuxCoreHost is used; similarly, if a new process needs to be started
then the LinuxPtraceHost is used. The above interaction, however,
suggests to me that perhaps the Host should be factored differently vis:
Host
- requestCreateProc - start a new process
- requestProc - find a running process
- requestCoreProc - create a Proc from the core
- requestExeProc - create a Proc from the exe
|
+---------------------------.
| |
LocalHost RemoteHost
o requestCoreProc
o requestExeProc
|
+---------------------.
LocalLinuxPtraceHost LocalLinuxUtraceHost
o requestCreateProc o requestCreateProc
o requestProc o requestProc
This lets us implement an operation such as "start" directly, for
instance: Proc.Host.requestCreateProc(Proc.exe).
2.
When it comes to performing searches such as for shared libraries and
executables, in addition to the local/remote host, there is a "search"
object, the sysroot, that resolves lookups for debug information.
Andrew
next reply other threads:[~2008-01-08 18:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 18:55 Andrew Cagney [this message]
2008-01-08 21:04 ` Phil Muldoon
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=4783C6A8.7020102@redhat.com \
--to=cagney@redhat.com \
--cc=frysk@sourceware.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).