[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

latency of gdb and gcj


I've been using gcj to compile various java applets that I have
written. I've tried to use gdb (and ddd) to debug these programs, but
I have found that there are really long waits after certain commands
(such as run). I've had no problem with debugging C programs. I have
used the following command to compile my java application:

$ gcj *.java -o test --main=Server -g

And to debug it:

$ gdb test
GNU gdb 5.1
Copyright 2001 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-linux"...
(gdb) run 9999
Starting program: /home/conrad/smtp/test 
[New Thread 1024 (LWP 25766)]

<<<<At this point about 11 seconds pass by>>>>

[New Thread 2049 (LWP 25769)]
[New Thread 1026 (LWP 25770)]
Server must have exactly one arg.

Program exited normally.

When run from the command line without gdb, the `test' command will be
run almost instantaneously. The step command takes a few seconds per
line. Also, when I run a backtrace (bt command), it takes about a
second for each line to appear.

I'm using a 400 MHz PowerMac G4 with gdb 5.1-1 and gcj 3.0.4-2. Is
there any way to get rid of these delays? Has anyone else seen this

-Nathan Conrad

Attachment: pgpjdBaIi7qBY.pgp
Description: PGP signature

Reply to: