List Info

Thread: gdb Stopped in pthread_create




gdb Stopped in pthread_create
user name
2007-07-21 09:16:18
Hi All, 

  I've tried to debug my multithreaded application with gdb
6.6 (GNU
gdb Red Hat Linux (6.6-15.fc7rh) ), but inside
pthread_create call I
get 

[1]+  Stopped                 gdb ./a.out

  If I use ddd on the same machine pthread_create works just
fine. 

I get this error on all Linux boxes and GUI is not available
on all of
them. Is there a way to configure gdb so that it could
tolerate
pthread_create?



WBR Oleg V. Zhylin   ovzyahoo.com


       
____________________________________________________________
________________________
Building a website is a piece of cake. Yahoo! Small Business
gives you all the tools to get online.
http://smal
lbusiness.yahoo.com/webhosting 

Re: gdb Stopped in pthread_create
country flaguser name
United States
2007-07-23 12:05:20
"Oleg V. Zhylin" <ovzyahoo.com> writes:
>   I've tried to debug my multithreaded application with
gdb 6.6 (GNU
> gdb Red Hat Linux (6.6-15.fc7rh) ), but inside
pthread_create call I
> get 
>
> [1]+  Stopped                 gdb ./a.out
>
>   If I use ddd on the same machine pthread_create works
just fine. 

That's very surprising.  Doesn't DDD just run GDB
internally?

> I get this error on all Linux boxes and GUI is not
available on all of
> them. Is there a way to configure gdb so that it could
tolerate
> pthread_create?

This is a bug; GDB should be able to step over calls to
pthread_create.

If you haven't already, please try downloading the latest
GDB sources
from CVS (see http://sourceware.
org/gdb/current/) and see if the
problem still occurs.  If it does, then if you can post
instructions
here that allow us to reproduce the problem on our own
machines, then
I will try to fix it.

breaking at thread exit
country flaguser name
United States
2007-07-23 16:37:55
Hello,

I just tried out gdb 6.6 on linux (2.4 kernel).

It looks like catch thread_exit is not yet implemented. Is
there some 
other trick I can use to break on a thread exit? I tried
breaking on 
pthread_exit but that doesnt work.

Thanks in advance,
Mayuresh.

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )