This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]