Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Debugger Timeout
Debugger Timeout [message #46578] Wed, 23 October 2002 12:58 Go to next message
Eclipse UserFriend
Originally posted by: ili.inbox.ru

Hi,

I'm having a trouble with CDT Debugger.
I use W2K, Eclipse 2.0.1, CDT build 20021022. I have Cygwing installed
properly, and it is in the PATH.
My C++ program builds fine also. But when I try to debug something,
I always get the following error message:

Failed Launching CDI Debugger: Error Inintiallizing : Timedout

If anyone could suggest what could be wrong here?

Thanks a lot.
Re: Debugger Timeout [message #46603 is a reply to message #46578] Wed, 23 October 2002 13:27 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
It's very strange. May be you didn't correctly input all launch info
into Launch Configuration page or may be inspite of correct path to cygwin
path to gdb is incorrect. Try to launch it from command line somewhere out
of Cygwin folder.


Hope it helps,
Igor S. Zamyatin
Interstron Ltd.
----------------------------------------
email: isz@interstron.ru
tel: +7 (095) 269-4713
cell: +7 (902) 659-5838
www: http://www.interstron.ru




> Hi,

> I'm having a trouble with CDT Debugger.
> I use W2K, Eclipse 2.0.1, CDT build 20021022. I have Cygwing installed
> properly, and it is in the PATH.
> My C++ program builds fine also. But when I try to debug something,
> I always get the following error message:

> Failed Launching CDI Debugger: Error Inintiallizing : Timedout

> If anyone could suggest what could be wrong here?

> Thanks a lot.
Re: Debugger Timeout [message #46627 is a reply to message #46603] Wed, 23 October 2002 13:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ili.inbox.ru

Thanks for your quick respond, Igor.

When I laung gdb from the command line outside Cygwin/bin, it works just
fine. It launches graphical interface though, by default, and I\'m able to
debug
with gdb.

Also, in my Launch Configuration Panel, I have two options:
C/C++ application, C/C++ Post-morten Debugger. Which one should I use?

If I choose C/C++ application, for example, then I find my project through
\"Browse\" button. The Browse button for the C/C++ Application does not
show
me anything available, but when I type the name of the exectutable, it
finds it. Then I press Apply, Debug, and the exeption message appears.

In the Debugger Panel, I have the following:
Debugger: GDB Debugger
Run Program in debugger is selected.
Stop at main on startup is checked.
MI Debugger: gdb

Maybe these are not correct options?

Thanks again for your help.

Sincerely,

Ilya


Igor S. Zamyatin wrote:

> It\'s very strange. May be you didn\'t correctly input all launch info
> into Launch Configuration page or may be inspite of correct path to cygwin
> path to gdb is incorrect. Try to launch it from command line somewhere out
> of Cygwin folder.


> Hope it helps,
> Igor S. Zamyatin
> Interstron Ltd.
> ----------------------------------------
> email: isz@interstron.ru
> tel: +7 (095) 269-4713
> cell: +7 (902) 659-5838
> www: http://www.interstron.ru




> > Hi,

> > I\'m having a trouble with CDT Debugger.
> > I use W2K, Eclipse 2.0.1, CDT build 20021022. I have Cygwing installed
> > properly, and it is in the PATH.
> > My C++ program builds fine also. But when I try to debug something,
> > I always get the following error message:

> > Failed Launching CDI Debugger: Error Inintiallizing : Timedout

> > If anyone could suggest what could be wrong here?

> > Thanks a lot.
Re: Debugger Timeout [message #46648 is a reply to message #46627] Wed, 23 October 2002 14:12 Go to previous messageGo to next message
Igor S. Zamyatin is currently offline Igor S. ZamyatinFriend
Messages: 56
Registered: July 2009
Member
Everything is correct and you have to choose "C/C++ application". I
think the problem is that you have wrong version of gdb. CDT works with
5.2.1 gdb.
Check your version of GDB, please.

Igor S. Zamyatin


Ilya wrote:

> Thanks for your quick respond, Igor.

> When I laung gdb from the command line outside Cygwin/bin, it works just
> fine. It launches graphical interface though, by default, and I\'m able to
> debug
> with gdb.

> Also, in my Launch Configuration Panel, I have two options:
> C/C++ application, C/C++ Post-morten Debugger. Which one should I use?

> If I choose C/C++ application, for example, then I find my project through
> \"Browse\" button. The Browse button for the C/C++ Application does not
> show
> me anything available, but when I type the name of the exectutable, it
> finds it. Then I press Apply, Debug, and the exeption message appears.

> In the Debugger Panel, I have the following:
> Debugger: GDB Debugger
> Run Program in debugger is selected.
> Stop at main on startup is checked.
> MI Debugger: gdb

> Maybe these are not correct options?

> Thanks again for your help.

> Sincerely,

> Ilya


> Igor S. Zamyatin wrote:

> > It\'s very strange. May be you didn\'t correctly input all launch info
> > into Launch Configuration page or may be inspite of correct path to cygwin
> > path to gdb is incorrect. Try to launch it from command line somewhere out
> > of Cygwin folder.


> > Hope it helps,
> > Igor S. Zamyatin
> > Interstron Ltd.
> > ----------------------------------------
> > email: isz@interstron.ru
> > tel: +7 (095) 269-4713
> > cell: +7 (902) 659-5838
> > www: http://www.interstron.ru




> > > Hi,

> > > I\'m having a trouble with CDT Debugger.
> > > I use W2K, Eclipse 2.0.1, CDT build 20021022. I have Cygwing installed
> > > properly, and it is in the PATH.
> > > My C++ program builds fine also. But when I try to debug something,
> > > I always get the following error message:

> > > Failed Launching CDI Debugger: Error Inintiallizing : Timedout

> > > If anyone could suggest what could be wrong here?

> > > Thanks a lot.
Re: Debugger Timeout [message #46697 is a reply to message #46648] Wed, 23 October 2002 15:08 Go to previous messageGo to next message
Judy N. Green is currently offline Judy N. GreenFriend
Messages: 149
Registered: July 2009
Senior Member
"Igor S. Zamyatin" <isz@interstron.ru> wrote in message
news:ap6anv$qhr$1@rogue.oti.com...
|
| Everything is correct and you have to choose "C/C++ application". I
| think the problem is that you have wrong version of gdb. CDT works with
| 5.2.1 gdb.
| Check your version of GDB, please.

The CDT uses GDB version 5.2.1 as the default. If you are using Cygwin the
default version they currently install is too old. You need gdb 5.2.1, which
should be in the gdb package dated 20020718-1


-Judy

|
| Igor S. Zamyatin
|
|
| Ilya wrote:
|
| > Thanks for your quick respond, Igor.
|
| > When I laung gdb from the command line outside Cygwin/bin, it works just
| > fine. It launches graphical interface though, by default, and I\'m able
to
| > debug
| > with gdb.
|
| > Also, in my Launch Configuration Panel, I have two options:
| > C/C++ application, C/C++ Post-morten Debugger. Which one should I use?
|
| > If I choose C/C++ application, for example, then I find my project
through
| > \"Browse\" button. The Browse button for the C/C++ Application does not
| > show
| > me anything available, but when I type the name of the exectutable, it
| > finds it. Then I press Apply, Debug, and the exeption message appears.
|
| > In the Debugger Panel, I have the following:
| > Debugger: GDB Debugger
| > Run Program in debugger is selected.
| > Stop at main on startup is checked.
| > MI Debugger: gdb
|
| > Maybe these are not correct options?
|
| > Thanks again for your help.
|
| > Sincerely,
|
| > Ilya
|
|
| > Igor S. Zamyatin wrote:
|
| > > It\'s very strange. May be you didn\'t correctly input all launch
info
| > > into Launch Configuration page or may be inspite of correct path to
cygwin
| > > path to gdb is incorrect. Try to launch it from command line somewhere
out
| > > of Cygwin folder.
|
|
| > > Hope it helps,
| > > Igor S. Zamyatin
| > > Interstron Ltd.
| > > ----------------------------------------
| > > email: isz@interstron.ru
| > > tel: +7 (095) 269-4713
| > > cell: +7 (902) 659-5838
| > > www: http://www.interstron.ru
|
|
|
|
| > > > Hi,
|
| > > > I\'m having a trouble with CDT Debugger.
| > > > I use W2K, Eclipse 2.0.1, CDT build 20021022. I have Cygwing
installed
| > > > properly, and it is in the PATH.
| > > > My C++ program builds fine also. But when I try to debug something,
| > > > I always get the following error message:
|
| > > > Failed Launching CDI Debugger: Error Inintiallizing : Timedout
|
| > > > If anyone could suggest what could be wrong here?
|
| > > > Thanks a lot.
|
|
|
|
|
|
|
|
|
|
Re: Debugger Timeout [message #46708 is a reply to message #46697] Wed, 23 October 2002 14:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ili.inbox.ru

Now I've installed GNU gdb 2002-07-19-cvs (cygwin-special).
And I'm getting some different behaviour.
When the debugger starts, I see two processes now:
GDB Debugger and MyProject.exe,
But it doesn't do anything. I mean, it does not stop at my breakpoints.
Also, I'm only allowed to use Terminate from the Run menu (step into, etc
are not enabled).

Am I doing something wrong again?

Thanks,

Ilya

Judy N. Green wrote:


> "Igor S. Zamyatin" <isz@interstron.ru> wrote in message
> news:ap6anv$qhr$1@rogue.oti.com...
> |
> | Everything is correct and you have to choose "C/C++ application". I
> | think the problem is that you have wrong version of gdb. CDT works with
> | 5.2.1 gdb.
> | Check your version of GDB, please.

> The CDT uses GDB version 5.2.1 as the default. If you are using Cygwin the
> default version they currently install is too old. You need gdb 5.2.1, which
> should be in the gdb package dated 20020718-1


> -Judy

> |
> | Igor S. Zamyatin
> |
> |
> | Ilya wrote:
> |
> | > Thanks for your quick respond, Igor.
> |
> | > When I laung gdb from the command line outside Cygwin/bin, it works just
> | > fine. It launches graphical interface though, by default, and I\'m able
> to
> | > debug
> | > with gdb.
> |
> | > Also, in my Launch Configuration Panel, I have two options:
> | > C/C++ application, C/C++ Post-morten Debugger. Which one should I use?
> |
> | > If I choose C/C++ application, for example, then I find my project
> through
> | > \"Browse\" button. The Browse button for the C/C++ Application does not
> | > show
> | > me anything available, but when I type the name of the exectutable, it
> | > finds it. Then I press Apply, Debug, and the exeption message appears.
> |
> | > In the Debugger Panel, I have the following:
> | > Debugger: GDB Debugger
> | > Run Program in debugger is selected.
> | > Stop at main on startup is checked.
> | > MI Debugger: gdb
> |
> | > Maybe these are not correct options?
> |
> | > Thanks again for your help.
> |
> | > Sincerely,
> |
> | > Ilya
> |
> |
> | > Igor S. Zamyatin wrote:
> |
> | > > It\'s very strange. May be you didn\'t correctly input all launch
> info
> | > > into Launch Configuration page or may be inspite of correct path to
> cygwin
> | > > path to gdb is incorrect. Try to launch it from command line somewhere
> out
> | > > of Cygwin folder.
> |
> |
> | > > Hope it helps,
> | > > Igor S. Zamyatin
> | > > Interstron Ltd.
> | > > ----------------------------------------
> | > > email: isz@interstron.ru
> | > > tel: +7 (095) 269-4713
> | > > cell: +7 (902) 659-5838
> | > > www: http://www.interstron.ru
> |
> |
> |
> |
> | > > > Hi,
> |
> | > > > I\'m having a trouble with CDT Debugger.
> | > > > I use W2K, Eclipse 2.0.1, CDT build 20021022. I have Cygwing
> installed
> | > > > properly, and it is in the PATH.
> | > > > My C++ program builds fine also. But when I try to debug something,
> | > > > I always get the following error message:
> |
> | > > > Failed Launching CDI Debugger: Error Inintiallizing : Timedout
> |
> | > > > If anyone could suggest what could be wrong here?
> |
> | > > > Thanks a lot.
> |
> |
> |
> |
> |
> |
> |
> |
> |
> |
Re: Debugger Timeout [message #46732 is a reply to message #46708] Wed, 23 October 2002 15:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ili.inbox.ru

Everything is working fine right now. For some reason, I didn't have
the right permissions to execute my .exe file. The Debugger did not
complain.
I've changed the permissions, an now it allows me to debug appropriately.

Thanks a lot for your answers.

Sincerely,

Ilya
Re: Debugger Timeout [message #46753 is a reply to message #46732] Wed, 23 October 2002 15:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sam.robb.oneparticularharbor.net

"Ilya" <ili@inbox.ru> wrote in message news:ap6e4t$t84$1@rogue.oti.com...
>
> Everything is working fine right now. For some reason, I didn't have
> the right permissions to execute my .exe file. The Debugger did not
> complain.
> I've changed the permissions, an now it allows me to debug appropriately.

Ilya,

Can you explain the permissions problem you saw, and how you solved it?

-Samrobb
Re: Debugger Timeout [message #46800 is a reply to message #46753] Wed, 23 October 2002 15:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ili.inbox.ru

Sam Robb wrote:

> Ilya,

> Can you explain the permissions problem you saw, and how you solved it?

> -Samrobb


Sam,

The permissions problem occured after I've installed new versions of
gcc/gdb from Cygwin. I've just compiled my project from the command line,
and
tried to execute it. I got "Access is denied." message.
Then, I went to properties of the executable, and set Execute permission.
The debugger worked fine, after that.

Now, I can't figure out, why gcc produces the file with such permissions.

Are you haveing the same problem?
Re: Debugger Timeout [message #46887 is a reply to message #46800] Wed, 23 October 2002 19:53 Go to previous message
Eclipse UserFriend
Originally posted by: sam.robb.oneparticularharbor.net

> The permissions problem occured after I've installed new versions of
> gcc/gdb from Cygwin. I've just compiled my project from the command line,
> and
> tried to execute it. I got "Access is denied." message.
> Then, I went to properties of the executable, and set Execute permission.
> The debugger worked fine, after that.
>
> Now, I can't figure out, why gcc produces the file with such permissions.
>
> Are you haveing the same problem?

Ah, I see... if you have recently upgraded your version of Cygwin
(in the past two weeks or so), there's a known problem that results
in gcc producing non-executable files. You might want to take a
look at the Cygwin mailing list; IIRC, part of the problem is having
an incorrect /etc/passwd file.

-Samrobb
Previous Topic:Build configurations
Next Topic:Breakpoint Locations
Goto Forum:
  


Current Time: Wed Jan 15 15:26:05 GMT 2025

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

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

Back to the top