[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Debugging Multithread prog. under Linux
From: |
Don Burkes |
Subject: |
Debugging Multithread prog. under Linux |
Date: |
Thu, 22 Feb 2001 17:39:08 -0700 |
Hi,
I'm using gdb 5.0 to debug a multi-threaded program under RedHat 6.2
with a 2.2.16 kernel. I'm having quite a bit of trouble with the
debugger. Two of the latest problems are:
1) I start the debugger and set a breakpoint in my code. The
breakpoint is set in code that executes after my threads have been
started. When I get to the breakpoint I set some other breakpoints and
say 'cont'. I get an error "metadata read error: interuppted system
call" and my program is terminated.
2) I start the program and attatch to one of the threads 'gdb progname
pid-of-thread'. I set a breakpoint or 2 and say 'cont'. Gdb says,
"program terminated normally" and gives me a prompt; it doesn't
continue. None of the threads in the program have terminated.
I'd appreciate any help and/or suggestions. I'm at a loss as to how to
use gdb with a threaded program.
Don L. Burkes
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Debugging Multithread prog. under Linux,
Don Burkes <=