Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » launching GDB
launching GDB [message #55267] Mon, 23 December 2002 18:42 Go to next message
Eclipse UserFriend
Originally posted by: bangham.neocera.com

I'm trying to get g++/gdb running under windows 2000 - have searched for
some details as to how to get all this to work, but not having much luck
finding details.

Currently, I've got g++ working fine but am struggling to figure out how to
get gdb running under windows. I currently get the following error in the
log file:

!ENTRY org.eclipse.cdt.launch 4 150 Dec 23, 2002 13:38:06.140
!MESSAGE Failed Launching CDI Debugger : Error initializing: Exec
error:Launching failed
!STACK 0
org.eclipse.cdt.debug.core.cdi.CDIException: Error initializing: Exec
error:Launching failed
at
org.eclipse.cdt.debug.mi.core.GDBDebugger.createLaunchSessio n(GDBDebugger.ja
va:47)
at
org.eclipse.cdt.debug.mi.core.CygwinGDBDebugger.createLaunch Session(CygwinGD
BDebugger.java:29)
at
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
alCLaunchConfigurationDelegate.java:84)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
on.java:136)
at
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
$10.run(LaunchConfigurationDialog.java:2299)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
..java:98)

The debugger tab in the launch configurations dialog is populated with
cygwin gdb debugger and gdb debugger in the combo box - but 1) it's not
clear to me if either package is installed automatically with the cdt plugin
and 2) if I need to install gdb, how do I connect it into the cdt?

thank you.
Re: launching GDB [message #55294 is a reply to message #55267] Mon, 23 December 2002 23:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailkhod.rogers.com

Check if you are using the correct version of gdb (5.2.1).

"Michael" <bangham@neocera.com> wrote in message
news:au7kt9$fkd$1@rogue.oti.com...
> I'm trying to get g++/gdb running under windows 2000 - have searched for
> some details as to how to get all this to work, but not having much luck
> finding details.
>
> Currently, I've got g++ working fine but am struggling to figure out how
to
> get gdb running under windows. I currently get the following error in the
> log file:
>
> !ENTRY org.eclipse.cdt.launch 4 150 Dec 23, 2002 13:38:06.140
> !MESSAGE Failed Launching CDI Debugger : Error initializing: Exec
> error:Launching failed
> !STACK 0
> org.eclipse.cdt.debug.core.cdi.CDIException: Error initializing: Exec
> error:Launching failed
> at
>
org.eclipse.cdt.debug.mi.core.GDBDebugger.createLaunchSessio n(GDBDebugger.ja
> va:47)
> at
>
org.eclipse.cdt.debug.mi.core.CygwinGDBDebugger.createLaunch Session(CygwinGD
> BDebugger.java:29)
> at
>
org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> alCLaunchConfigurationDelegate.java:84)
> at
>
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> on.java:136)
> at
>
org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> $10.run(LaunchConfigurationDialog.java:2299)
> at
>
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> .java:98)
>
> The debugger tab in the launch configurations dialog is populated with
> cygwin gdb debugger and gdb debugger in the combo box - but 1) it's not
> clear to me if either package is installed automatically with the cdt
plugin
> and 2) if I need to install gdb, how do I connect it into the cdt?
>
> thank you.
>
>
Re: launching GDB [message #55669 is a reply to message #55267] Mon, 30 December 2002 03:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: javacard.hotmail.com

Michael wrote:

> I\\\'m trying to get g++/gdb running under windows 2000 - have searched for
> some details as to how to get all this to work, but not having much luck
> finding details.

> Currently, I\\\'ve got g++ working fine but am struggling to figure out how
to
> get gdb running under windows. I currently get the following error in the
> log file:

> !ENTRY org.eclipse.cdt.launch 4 150 Dec 23, 2002 13:38:06.140
> !MESSAGE Failed Launching CDI Debugger : Error initializing: Exec
> error:Launching failed
> !STACK 0
> org.eclipse.cdt.debug.core.cdi.CDIException: Error initializing: Exec
> error:Launching failed
> at
> org.eclipse.cdt.debug.mi.core.GDBDebugger.createLaunchSessio n(GDBDebugger.ja
> va:47)
> at
> org.eclipse.cdt.debug.mi.core.CygwinGDBDebugger.createLaunch Session(CygwinGD
> BDebugger.java:29)
> at
> org.eclipse.cdt.launch.internal.LocalCLaunchConfigurationDel egate.launch(Loc
> alCLaunchConfigurationDelegate.java:84)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfigurati
> on.java:136)
> at
> org.eclipse.debug.internal.ui.launchConfigurations.LaunchCon figurationDialog
> $10.run(LaunchConfigurationDialog.java:2299)
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext
> ..java:98)

> The debugger tab in the launch configurations dialog is populated with
> cygwin gdb debugger and gdb debugger in the combo box - but 1) it\\\'s not
> clear to me if either package is installed automatically with the cdt plugin
> and 2) if I need to install gdb, how do I connect it into the cdt?

> thank you.

I met quite similar warning.I just modified my makefile:add -g option to
make a debug version executable file,add \\\'cygwin\\\\bin\\\\gdb\\\' into
PATH environment variable.Then it works.
Re: launching GDB [message #62009 is a reply to message #55669] Wed, 12 February 2003 11:51 Go to previous message
Eclipse UserFriend
Originally posted by: user.domain.invalid

hi
got this problem too...

>
>>Currently, I\\\'ve got g++ working fine but am struggling to figure out how
>
> to
>
>>get gdb running under windows. I currently get the following error in the
>>log file:
>
>
>>!ENTRY org.eclipse.cdt.launch 4 150 Dec 23, 2002 13:38:06.140
>>!MESSAGE Failed Launching CDI Debugger : Error initializing: Exec
>>error:Launching failed
>
>
> I met quite similar warning.I just modified my makefile:add -g option to
> make a debug version executable file,add \\\'cygwin\\\\bin\\\\gdb\\\' into
> PATH environment variable.Then it works.
>
>
what PATH variable? in W2K? this did not help.
in Preferences of eclipse i did not find any path variable, nor in the
project reference

charlie
Previous Topic:debugger path
Next Topic:help with building CDT
Goto Forum:
  


Current Time: Sun Oct 06 08:47:22 GMT 2024

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

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

Back to the top