Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Aug 1999 13:41:42 -0700
From:      Amancio Hasty <hasty@rah.star-gate.com>
To:        Richard Cownie <tich@ma.ikos.com>
Cc:        Alex Zepeda <garbanzo@hooked.net>, freebsd-current@FreeBSD.ORG, tich@par28.ma.ikos.com
Subject:   Re: gdb 
Message-ID:  <199908172041.NAA90654@rah.star-gate.com>
In-Reply-To: Your message of "Tue, 17 Aug 1999 16:11:09 EDT." <99081716193600.00845@par28.ma.ikos.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908172041.NAA90654>