[2856] in java-interest

home help back first fref pref prev next nref lref last post

jdb problem (*not* /dev/console)

daemon@ATHENA.MIT.EDU (Anselm.BairdSmith)
Wed Oct 18 08:09:22 1995

Date: Wed, 18 Oct 1995 11:08:52 +0100
From: "Anselm.BairdSmith" <Anselm.Baird_Smith@inria.fr>
To: java-interest@java.sun.com


Hi,

I am trying to use jdb on my own application. After reading the
various docs I found, here is how I proceeded:

a) recompile all my classes with the '-g' option
b) replace TTY.class with the newer one (/dev/console prob)
c) run jdb
d) load my class (httpd.httpd)
e) set a breakpoint.

When I reach the breakpoint, the debugger (or whatever) gets an
exception, and kills the thread (!) So I am just not able to visit my
prog state at the breakpoint.

I have included below my full debugging session, in case I am doing
something wrong.

Anselm.
[BTW, I know lots of questions have been asked on jdb, but
unfortunatelly the mail archive at java.sun.com doesn't seem to
archive any more, so apologize if this has already been asked.]

---- debugging 
# jdb
> load httpd.httpd
0xee301ef8:class(httpd.httpd)
> load httpd.ExternalEntity
0xee302cc0:class(httpd.ExternalEntity)
> stop at ExternalEntity:27
Breakpoint set at httpd.ExternalEntity:27
> run httpd.httpd -r root -i proxy
running ...
main[1] threadgroups
1. (java.lang.ThreadGroup)0xee300068 system
2. (java.lang.ThreadGroup)0xee300a38 main
3. (java.lang.ThreadGroup)0xee3005b8 httpd.httpd.main
main[1] threadgroup httpd.httpd.main
main[1] threads
Group httpd.httpd.main:
 1. (timers.EventManager)0xee303a78 Event Manager cond. waiting                
 2. (java.lang.Thread)0xee303af0    httpd         cond. waiting                
main[1] Uncaught exception: java.lang.InternalError undefined opcode
	at httpd.ExternalEntity.get(ProxyDirectory.java:27)
	at httpd.Client.loop(Client.java:155)
	at httpd.Client.run(Client.java:249)
	at java.lang.Thread.run(Thread.java)

Thread-7[1] where
Thread is not running (no stack).
Thread-7[1] threads
Group httpd.httpd.main:
 1. (timers.EventManager)0xee303a78 Event Manager suspended                    
 2. (java.lang.Thread)0xee303af0    httpd         suspended                    
Thread-7[1] 
------------------

Anselm.BairdSmith@inria.fr - http://www.inria.fr/koala/abaird.html


-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post