This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: SimpleDateFormat thread problems?
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Vladimir Leven <vladimirl at wrx-ca dot com>, Bryce McKinlay <mckinlay at redhat dot com>, <java at gcc dot gnu dot org>
- Date: Mon, 10 May 2004 15:18:28 -0400 (EDT)
- Subject: Re: SimpleDateFormat thread problems?
On 10 May 2004, Tom Tromey wrote:
> Vladimir> Related question: Is there a way to dump the stack trace for a given
> Vladimir> thread? I can only seem to look at the stack trace for the currently
> Vladimir> running thread.
>
> In gdb, just switch to the thread you're interested in with the
> "thread" command, then "bt".
>
> Outside of gdb, no, I don't think there is a way.
You can also attach gdb to a running java process to get a thread dump, at
least on NPTL targets (I seem to remember it didn't work on LinuxThreads).
I wonder if core files now preserve thread stacks... hey, it seems to
work! At least on my FC1 box.
So you can either a) start a process with gdb, b) attach to an already
running process or c) force a core dump and debug that.
Jeff