public inbox for rhug-rhats@sourceware.org
 help / color / mirror / Atom feed
* debugging
@ 2002-09-16  9:50 Christophe Roux
  2002-09-17 16:32 ` debugging Tom Tromey
  0 siblings, 1 reply; 3+ messages in thread
From: Christophe Roux @ 2002-09-16  9:50 UTC (permalink / raw)
  To: rhug-rhats

I am porting a voluminous software to gcj with tomcat from rhug;
I am used to debug my program with exception stack trace but with gcj it is 
difficult as you don't know neither the method nor the line where the 
exception occurred.
So I want to use server side gdb in order to track my bugs.
Can someone tell me how to use gdb with rhug-tomcat?
Thanks
Christophe Roux

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: debugging
  2002-09-16  9:50 debugging Christophe Roux
@ 2002-09-17 16:32 ` Tom Tromey
  0 siblings, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2002-09-17 16:32 UTC (permalink / raw)
  To: Christophe Roux; +Cc: rhug-rhats

>>>>> "Christophe" == Christophe Roux <ch_roux@club-internet.fr> writes:

Christophe> So I want to use server side gdb in order to track my bugs.
Christophe> Can someone tell me how to use gdb with rhug-tomcat?

I've never tried it.  However, a general technique that might work is
to attach to the running gcj-compiled process using gdb.  See the
`attach' command.  Doing this effectively may involve adding sleep()
calls to your program... not to mention working around areas where
gdb's gcj support is less than ideal.

Tom

^ permalink raw reply	[flat|nested] 3+ messages in thread

* debugging
@ 2002-09-18 10:15 Christophe Roux
  0 siblings, 0 replies; 3+ messages in thread
From: Christophe Roux @ 2002-09-18 10:15 UTC (permalink / raw)
  To: Tom Tromey; +Cc: rhug-rhats

Do you know a simple solution in order to debug a servlet with gcj ?
The exception stack trace seams to give only gcj concern methods' names.
Is there a way to obtain the line number where the exception was triggered in 
the "java" program ?

Thanks to light my lantern.
Christophe

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-09-18 17:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-16  9:50 debugging Christophe Roux
2002-09-17 16:32 ` debugging Tom Tromey
2002-09-18 10:15 debugging Christophe Roux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).