From owner-freebsd-current Tue Aug 17 13:45:43 1999 Delivered-To: freebsd-current@freebsd.org Received: from rah.star-gate.com (216-200-29-190.snj0.flashcom.net [216.200.29.194]) by hub.freebsd.org (Postfix) with ESMTP id 07B8E157D8 for ; Tue, 17 Aug 1999 13:43:01 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Received: from rah.star-gate.com (localhost.star-gate.com [127.0.0.1]) by rah.star-gate.com (8.9.3/8.8.8) with ESMTP id NAA90654; Tue, 17 Aug 1999 13:41:42 -0700 (PDT) (envelope-from hasty@rah.star-gate.com) Message-Id: <199908172041.NAA90654@rah.star-gate.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Richard Cownie Cc: Alex Zepeda , freebsd-current@FreeBSD.ORG, tich@par28.ma.ikos.com Subject: Re: gdb In-reply-to: Your message of "Tue, 17 Aug 1999 16:11:09 EDT." <99081716193600.00845@par28.ma.ikos.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 17 Aug 1999 13:41:42 -0700 From: Amancio Hasty Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG A side note on gdb-4.18 8) (gdb) run Starting program: /tmp/./sieve Program received signal SIGBUS, Bus error. 0x281eeac7 in GC_find_limit (p=0xbfbfcff8 "", up=1) at ../../../../libgcj-2.95/boehm-gc/os_dep.c:681 681 ../../../../libgcj-2.95/boehm-gc/os_dep.c: No such file or directory. Current language: auto; currently c (gdb) cont Continuing. Running Sieve benchmark. This will take about 10 seconds. Breakpoint 1, Sieve.runSieve () at Sieve.java:16 16 int SIZE = 8190; Current language: auto; currently java (gdb) list 11 System.out.println(results1); 12 System.out.println(results2); 13 } 14 15 static void runSieve() { 16 int SIZE = 8190; 17 boolean flags[] = new boolean[SIZE+1]; 18 int i, prime, k, iter, count; 19 int iterations = 0; 20 double seconds = 0.0; (gdb) list 21 int score = 0; 22 long startTime, elapsedTime; 23 24 startTime = System.currentTimeMillis(); 25 while (true) { 26 count=0; 27 for(i=0; i<=SIZE; i++) flags[i]=true; 28 for (i=0; i<=SIZE; i++) { 29 if(flags[i]) { 30 prime=i+i+3; It still needs a little work however gdb appears to work java programs compiled with "gcj" -- GNU's java compiler -- java to native binary .. gcj still needs work however it is starting to shape up. Enjoy -- Amancio Hasty hasty@rah.star-gate.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message