From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20693 invoked by alias); 5 Nov 2007 09:52:48 -0000 Received: (qmail 20686 invoked by uid 22791); 5 Nov 2007 09:52:48 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS,TW_FH X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 05 Nov 2007 09:52:42 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.1) with ESMTP id lA59qefC017875 for ; Mon, 5 Nov 2007 04:52:40 -0500 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lA59qenS025242; Mon, 5 Nov 2007 04:52:40 -0500 Received: from localhost.localdomain (vpn-6-38.fab.redhat.com [10.33.6.38]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id lA59qcYA010715; Mon, 5 Nov 2007 04:52:39 -0500 Message-ID: <472EE7E6.9050609@redhat.com> Date: Mon, 05 Nov 2007 09:52:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Andrew Cagney CC: Frysk Hackers Subject: Re: fhpd user interaction (and corefiles) References: <472AF5FE.2010900@redhat.com> <472B2AC3.3080609@redhat.com> In-Reply-To: <472B2AC3.3080609@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q4/txt/msg00101.txt.bz2 Andrew Cagney wrote: > Phil Muldoon wrote: >> The question here then: if the LinuxHost code has a question for the >> user, how does it ask that user the question via CoreCommand? As far >> as I can tell, none of the fhpd commands are interactive. > As you point out, the bottom line is fstack et.al., where no > interaction is possible. The create either succeeds or fails. With > that in mind can i suggest considering instead how you might interact > with this from a UI. For instance, would this work: > ->File->Open > use file browser to open a core file > < raw core file>> > - indicates what action is going to happen next, for instance > indicates the executable it will attempt to open (or don't bother) > - OK attempts to open the executable or fails leaving the user > with the assistant > from a cli, a similar interaction might be: > (fhpd) core foo > Executable for not found. Yeah, pretty much what I was thinking. I'm still undecided how LinuxHost.java should message back that the corefile executable has not been found. I could raise a (checked) exception, but that somewhat indicates an error condition when it is not. I could implement callbacks, but that would require a declared interface, which may muddle the very simple and clean interaction now. Any ideas? Regards Phil >