Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » GDB problem with pthreads
GDB problem with pthreads [message #150852] Thu, 04 August 2005 15:37 Go to next message
Eclipse UserFriend
Originally posted by: rodrigo.tekchile.cl

Hello group:

I'm begining to migrate a 10k lines of code project to use the GNU tools.

I'm using eclipse 3.1 & CDT + latest Cygwin.

I have rewrite the OS Layer to begin use pthread library for
multi-threading capabilites.

When i try to debug my program i note the CPU going almost 100% with my
program & gdb.exe taking most of it. The program never goes further.

If i run the program without the debugger everything goes well.

So i decided to investigate more and found where the program hangs.
I found that when creating mutexes the debugger get lost. Not after the
first call but after a couple of invocation of 'pthread_mutex_init' &
'pthread_cond_init'.

I can repro the similar problem without using eclipse but directly using
cygwin and gdb.

Any hints on what is going on ?
Thanks,
Rodrigo.
Re: GDB problem with pthreads [message #150858 is a reply to message #150852] Thu, 04 August 2005 16:30 Go to previous message
Eclipse UserFriend
Originally posted by: mikhailkhod.rogers.com

I would suggest to post this question to the gdb mailing list.

"Rodrigo varas" <rodrigo@tekchile.cl> wrote in message
news:c96a9b3ab3005b5a6c3a1cbbe088f32f$1@www.eclipse.org...
> Hello group:
>
> I'm begining to migrate a 10k lines of code project to use the GNU tools.
>
> I'm using eclipse 3.1 & CDT + latest Cygwin.
>
> I have rewrite the OS Layer to begin use pthread library for
> multi-threading capabilites.
>
> When i try to debug my program i note the CPU going almost 100% with my
> program & gdb.exe taking most of it. The program never goes further.
>
> If i run the program without the debugger everything goes well.
>
> So i decided to investigate more and found where the program hangs.
> I found that when creating mutexes the debugger get lost. Not after the
> first call but after a couple of invocation of 'pthread_mutex_init' &
> 'pthread_cond_init'.
>
> I can repro the similar problem without using eclipse but directly using
> cygwin and gdb.
>
> Any hints on what is going on ?
> Thanks,
> Rodrigo.
>
>
Previous Topic:Console not updating
Next Topic:shortcut for function, method definitions
Goto Forum:
  


Current Time: Fri Apr 26 09:12:57 GMT 2024

Powered by FUDForum. Page generated in 0.03457 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top