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
 [EMAIL PROTECTED]




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to