From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26901 invoked by alias); 3 Jan 2008 16:29:50 -0000 Received: (qmail 26891 invoked by uid 22791); 3 Jan 2008 16:29:49 -0000 X-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS 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; Thu, 03 Jan 2008 16:24:17 +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.8) with ESMTP id m03GNnxY027439 for ; Thu, 3 Jan 2008 11:23:49 -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 m03GNn22031052 for ; Thu, 3 Jan 2008 11:23:49 -0500 Received: from dhcp-215.hsv.redhat.com (dhcp-215.hsv.redhat.com [172.16.17.215]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m03GNmxb023736 for ; Thu, 3 Jan 2008 11:23:48 -0500 Message-ID: <477D0C14.6080804@redhat.com> Date: Thu, 03 Jan 2008 16:29:00 -0000 From: Rick Moseley User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: frysk Subject: fhpd load/start/run Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 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: 2008-q1/txt/msg00002.txt.bz2 Hi all, Recently I have been working on the load/start/run command sequence and I thought I would bring everyone up-to-date on where I am. I thought I would give everyone a quick overview of the commands and what they do as the functionality of the start/run commands changes based on what context they are executed in. load - takes a path to an executable as a parameter and allows the user to examine data from an executable without running it start - takes a path to an executable as a parameter and runs it to the first executable instruction; if a start command is executed with no parameters after a load command, it uses the path to the executable used in that command to do the same thing; if another start command is issued subsequently without parameters, the process is killed and a new version is loaded and rerun to the first executable instruction Here is a load/start/start command sequence example: (fhpd) load ../pkglibdir/funit-threads-looper Loaded executable file: ../pkglibdir/funit-threads-looper (fhpd) start Attached to process 28451 (fhpd) start Killing process 28451 Loaded executable file: /home/rmoseley/frysk-git1/build/frysk-core/frysk/pkglibdir/funit-threads-looper Attached to process 28456 (fhpd) where [0.0] #0 0x00000035ff600ac0 in _start () from /lib64/ld-2.7.so run - is pretty much exactly the same as the "start" command except the process is run to the first breakpoint(if there is one) instead of the first executable instruction; if a run command is issued with no parameters, then it uses the path to the executable from a previous start or load command; as with the start command, subsequent run commands will kill the currently running process and reruns the process to the first breakpoint(again, if there is one) Here is an example of a load/run/run sequence: (fhpd) load ../pkglibdir/funit-threads-looper Loaded executable file: ../pkglibdir/funit-threads-looper (fhpd) run Attached to process 28727 Running process 28727 (fhpd) run Killing process 28727 Loaded executable file: /home/rmoseley/frysk-git1/build/frysk-core/frysk/pkglibdir/funit-threads-looper Attached to process 28741 Running process 28741 Please note that changes have also been made to the HpdTestbed class to implement a "start" method(HpdTestbed.start). I have made the changes to the existing tests that were using HpdTestbed.run to now use HpdTestbed.start. Now, the next thing to get working is the passing of commandline arguments thru the above sequences. As always, comments/suggestions/ideas are always welcome. :-) Rick