From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5349 invoked by alias); 14 Jan 2008 09:06:38 -0000 Received: (qmail 5339 invoked by uid 22791); 14 Jan 2008 09:06:37 -0000 X-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_44,J_CHICKENPOX_54,J_CHICKENPOX_56,J_CHICKENPOX_63 X-Spam-Check-By: sourceware.org Received: from wildebeest.demon.nl (HELO gnu.wildebeest.org) (83.160.170.119) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Jan 2008 09:06:10 +0000 Received: from dijkstra.wildebeest.org ([192.168.1.29]) by gnu.wildebeest.org with esmtp (Exim 4.63) (envelope-from ) id 1JELGf-0007dj-RE; Mon, 14 Jan 2008 10:06:07 +0100 Subject: Re: [SCM] master: Add -sysroot option to fhpd. From: Mark Wielaard To: frysk@sourceware.org Cc: Stan Cox In-Reply-To: <20080114051518.31275.qmail@sourceware.org> References: <20080114051518.31275.qmail@sourceware.org> Content-Type: text/plain Date: Mon, 14 Jan 2008 09:06:00 -0000 Message-Id: <1200301565.3383.5.camel@dijkstra.wildebeest.org> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-3.fc8) Content-Transfer-Encoding: 7bit X-Spam-Score: -4.4 (----) 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/msg00019.txt.bz2 Hi Stan, On Mon, 2008-01-14 at 05:15 +0000, scox@sourceware.org wrote: > commit c02d1bd3109ef0406be508fc08426e75b1b6fe07 > Author: Stan Cox > Date: Mon Jan 14 00:12:57 2008 -0500 > > Add -sysroot option to fhpd. > > * fhpd.java (main): Add sysroot option. > * Makefile.am (frysk/pkglibdir/funit-addresses-stripped): New > * DwflCache.java (getSysRoot): New > * DbgVariables.java (DbgVariables): Make public. > (vars): Make static final. Add SYSROOT. > (getStringValue): Make static. Return String. > * ListCommand.java (interpret): Consider SYSROOT. > * TestSysRoot.java: New file. > * Dwfl.java (Dwfl): Add sysroot parameter. Change all callers. > [...] > + public void testHaveSysRoot() { > + File testPath = Config.getPkgLibFile("funit-addresses"); > + System.out.println(Config.getBinFile("fhpd").getAbsolutePath() + > + " -sysroot " + testPath.getParent() + "/test-sysroot/ " + > + testPath.getParent() + "/test-sysroot/" > + + testPath.getAbsolutePath()); > + child = new Expect(new String[] { > + Config.getBinFile("fhpd").getAbsolutePath(), > + "-sysroot", testPath.getParent() + "/test-sysroot/", > + testPath.getParent() + "/test-sysroot/" > + + testPath.getAbsolutePath() > + }); This test doesn't work for me (and note the System.out.println which probably shouldn't be there). It gives the following output: $ ./TestRunner frysk.hpd.TestSysRoot Running testHaveSysRoot(frysk.hpd.TestSysRoot) .../home/mark/src/frysk-obj/frysk-core/frysk/bindir/fhpd -sysroot /home/mark/src/frysk-obj/frysk-core/frysk/pkglibdir/test-sysroot/ /home/mark/src/frysk-obj/frysk-core/frysk/pkglibdir/test-sysroot//home/mark/src/frysk-obj/frysk-core/frysk/pkglibdir/funit-addresses ERROR frysk.expunit.EndOfFileException: end-of-file; expecting: <<\(fhpd\) >>; buffer < || fhpd || fhpd [] -console Set the log LOG to level LEVEL. Can set multiple logs. The LEVEL can be [ OFF | SEVERE | WARNING | INFO | CONFIG | FINE | FINER | FINEST | ALL]. Example: -console frysk=FINEST -log Set the log LOG to level LEVEL. Can set multiple logs. The LEVEL can be [ OFF | SEVERE | WARNING | INFO | CONFIG | FINE | FINER | FINEST | ALL]. Example -log frysk=FINE -verbose output verbose logging messages -trace Set the logger LOG to level LEVEL. The LEVEL can be [ NONE | FINE | FINEST ]. Example -trace frysk=FINE -noexe Do not attempt to read an executable for a corefile -s, -sysroot SysRoot-Path Assume the executable is from a sysroot build Standard options: -help print this help, then exit -version print version number, then exit Exception in thread "main" java.lang.RuntimeException: command not readable: /home/mark/src/frysk-obj/frysk-core/frysk/pkglibdir/test-sysroot//home/mark/src/frysk-obj/frysk-core/frysk/pkglibdir/funit-addresses at frysk.bindir.fhpd$1.parseCommand(fhpd) at frysk.util.CommandlineParser.doParse(fhpd) at frysk.util.CommandlineParser.parse(fhpd) at frysk.bindir.fhpd.main(fhpd) >> I assume you have something in your tree that generates the /home/mark/src/frysk-obj/frysk-core/frysk/pkglibdir/test-sysroot/ directory. But I couldn't figure out how to properly do that. Could you take a look? And maybe add some documentation on how a sysroot dir should look like, how to generate one by hand? Thanks, Mark