Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't debug with CDT
Can't debug with CDT [message #87499] Thu, 27 November 2003 00:04 Go to next message
Eclipse UserFriend
Originally posted by: mdubuc.ca.ibm.com

I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin installed
on my machine. The cygwin distribution is fairly new (September 2003). I
am running eclipse/CDT on Windows XP.

I have been able to compile a simple Hello World application. I can run
it. I would like to debug it now. When I launch debug, I get two suspended
threads and a command window that doesn't show up anything. Nothing is
happening at this point. If I do Run/Resume, I get an error message:
Resume failed.
Reason:
Exceptions occured attempting to resume.
Details: Target request failed: Target is not responding (timed out)

Have I missed a configuration?

Martin
Re: Can't debug with CDT [message #87514 is a reply to message #87499] Thu, 27 November 2003 10:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

Looks like gdb is not responding. Check if it is running at the time when
you are trying to resume.

"Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
news:bq40lm$4ca$1@eclipse.org...
> I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin installed
> on my machine. The cygwin distribution is fairly new (September 2003). I
> am running eclipse/CDT on Windows XP.
>
> I have been able to compile a simple Hello World application. I can run
> it. I would like to debug it now. When I launch debug, I get two suspended
> threads and a command window that doesn't show up anything. Nothing is
> happening at this point. If I do Run/Resume, I get an error message:
> Resume failed.
> Reason:
> Exceptions occured attempting to resume.
> Details: Target request failed: Target is not responding (timed out)
>
> Have I missed a configuration?
>
> Martin
>
Re: Can't debug with CDT [message #87599 is a reply to message #87514] Thu, 27 November 2003 19:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mdubuc.ca.ibm.com

I have verified if gdb was running. It is running along with the
application. There are error messages on the console though:

info threads
No registers.
info program
Using the running image of child thread 3424.0xd8c.
Program stopped at 0x4010be.
It stopped at a breakpoint that has since been deleted.
Type "info stack" or "info registers" for more information.
info threads
2 thread 3424.0x30c * 1 thread 3424.0xd8c

This seem to be the cause of my problem, but I can't figure out what it
means.

Martin

Mikhail Khodjaiants wrote:

> Looks like gdb is not responding. Check if it is running at the time when
> you are trying to resume.

> "Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
> news:bq40lm$4ca$1@eclipse.org...
> > I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin installed
> > on my machine. The cygwin distribution is fairly new (September 2003). I
> > am running eclipse/CDT on Windows XP.
> >
> > I have been able to compile a simple Hello World application. I can run
> > it. I would like to debug it now. When I launch debug, I get two suspended
> > threads and a command window that doesn't show up anything. Nothing is
> > happening at this point. If I do Run/Resume, I get an error message:
> > Resume failed.
> > Reason:
> > Exceptions occured attempting to resume.
> > Details: Target request failed: Target is not responding (timed out)
> >
> > Have I missed a configuration?
> >
> > Martin
> >
Re: Can't debug with CDT [message #87614 is a reply to message #87599] Thu, 27 November 2003 19:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

You can get the trace of commands the CDT is sending to gdb. See CDT FAQ
"Can I see/log all of the commands which are being driven to gdb?".

"Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
news:bq63o9$hfn$1@eclipse.org...
> I have verified if gdb was running. It is running along with the
> application. There are error messages on the console though:
>
> info threads
> No registers.
> info program
> Using the running image of child thread 3424.0xd8c.
> Program stopped at 0x4010be.
> It stopped at a breakpoint that has since been deleted.
> Type "info stack" or "info registers" for more information.
> info threads
> 2 thread 3424.0x30c * 1 thread 3424.0xd8c
>
> This seem to be the cause of my problem, but I can't figure out what it
> means.
>
> Martin
>
> Mikhail Khodjaiants wrote:
>
> > Looks like gdb is not responding. Check if it is running at the time
when
> > you are trying to resume.
>
> > "Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
> > news:bq40lm$4ca$1@eclipse.org...
> > > I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin
installed
> > > on my machine. The cygwin distribution is fairly new (September 2003).
I
> > > am running eclipse/CDT on Windows XP.
> > >
> > > I have been able to compile a simple Hello World application. I can
run
> > > it. I would like to debug it now. When I launch debug, I get two
suspended
> > > threads and a command window that doesn't show up anything. Nothing is
> > > happening at this point. If I do Run/Resume, I get an error message:
> > > Resume failed.
> > > Reason:
> > > Exceptions occured attempting to resume.
> > > Details: Target request failed: Target is not responding (timed out)
> > >
> > > Have I missed a configuration?
> > >
> > > Martin
> > >
>
>
Re: Can't debug with CDT [message #87693 is a reply to message #87599] Fri, 28 November 2003 05:27 Go to previous messageGo to next message
Eclipse UserFriend
I rather suggest to look again, if you really debug the right -Debug- build.
If there is a previous debug build and then you use a release build, information
about the debug infos and the breakpoints is lost. The debugger thinks he stops
at line 5 but actually he is at line 20 or such. You should also check, if you
use the right Debugger from the Launch-Configuration.

Martin Dubuc schrieb:
> I have verified if gdb was running. It is running along with the
> application. There are error messages on the console though:
>
> info threads
> No registers.
> info program
> Using the running image of child thread 3424.0xd8c.
> Program stopped at 0x4010be.
> It stopped at a breakpoint that has since been deleted.
> Type "info stack" or "info registers" for more information.
> info threads
> 2 thread 3424.0x30c * 1 thread 3424.0xd8c
>
> This seem to be the cause of my problem, but I can't figure out what it
> means.
>
> Martin
>
> Mikhail Khodjaiants wrote:
>
>
>>Looks like gdb is not responding. Check if it is running at the time when
>>you are trying to resume.
>
>
>>"Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
>>news:bq40lm$4ca$1@eclipse.org...
>>
>>>I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin installed
>>>on my machine. The cygwin distribution is fairly new (September 2003). I
>>>am running eclipse/CDT on Windows XP.
>>>
>>>I have been able to compile a simple Hello World application. I can run
>>>it. I would like to debug it now. When I launch debug, I get two suspended
>>>threads and a command window that doesn't show up anything. Nothing is
>>>happening at this point. If I do Run/Resume, I get an error message:
>>>Resume failed.
>>>Reason:
>>> Exceptions occured attempting to resume.
>>>Details: Target request failed: Target is not responding (timed out)
>>>
>>>Have I missed a configuration?
>>>
>>>Martin
>>>
>
>
>
Re: Can't debug with CDT [message #88540 is a reply to message #87499] Thu, 04 December 2003 12:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mdubuc.ca.ibm.com

In case someone experience the same problem as I encountered, one of
eclipse gurus (thanks a lot by the way) was able to figure out that my
version of gdb (2003-09-02-cvs cygwin-special) had problems with
"data-list-changed-registers". Disabling the updating the Registers view
option (Windows->Preferences->Debug->Registers view) and unchecking the
"Auto-Refresh by default" option took care of the problem.

Martin

Martin Dubuc wrote:

> I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin installed
> on my machine. The cygwin distribution is fairly new (September 2003). I
> am running eclipse/CDT on Windows XP.

> I have been able to compile a simple Hello World application. I can run
> it. I would like to debug it now. When I launch debug, I get two suspended
> threads and a command window that doesn't show up anything. Nothing is
> happening at this point. If I do Run/Resume, I get an error message:
> Resume failed.
> Reason:
> Exceptions occured attempting to resume.
> Details: Target request failed: Target is not responding (timed out)

> Have I missed a configuration?

> Martin
Re: Can't debug with CDT [message #88555 is a reply to message #87499] Thu, 04 December 2003 13:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mdubuc.ca.ibm.com

In case someone experience the same problem as I encountered, one of
eclipse gurus (thanks a lot by the way) was able to figure out that my
version of gdb (2003-09-02-cvs cygwin-special) had problems with
"data-list-changed-registers". Disabling the updating the Registers view
option (Windows->Preferences->Debug->Registers view) and unchecking the
"Auto-Refresh by default" option took care of the problem.

Martin

Martin Dubuc wrote:

> I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin installed
> on my machine. The cygwin distribution is fairly new (September 2003). I
> am running eclipse/CDT on Windows XP.

> I have been able to compile a simple Hello World application. I can run
> it. I would like to debug it now. When I launch debug, I get two suspended
> threads and a command window that doesn't show up anything. Nothing is
> happening at this point. If I do Run/Resume, I get an error message:
> Resume failed.
> Reason:
> Exceptions occured attempting to resume.
> Details: Target request failed: Target is not responding (timed out)

> Have I missed a configuration?

> Martin
Re: Can't debug with CDT [message #88615 is a reply to message #88555] Fri, 05 December 2003 08:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailkhod.rogers.com

I am using gdb 2003-03-03-cvs (cygwin-special) and it works fine.

"Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
news:bqnsni$v1h$1@eclipse.org...
> In case someone experience the same problem as I encountered, one of
> eclipse gurus (thanks a lot by the way) was able to figure out that my
> version of gdb (2003-09-02-cvs cygwin-special) had problems with
> "data-list-changed-registers". Disabling the updating the Registers view
> option (Windows->Preferences->Debug->Registers view) and unchecking the
> "Auto-Refresh by default" option took care of the problem.
>
> Martin
>
> Martin Dubuc wrote:
>
> > I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin installed
> > on my machine. The cygwin distribution is fairly new (September 2003). I
> > am running eclipse/CDT on Windows XP.
>
> > I have been able to compile a simple Hello World application. I can run
> > it. I would like to debug it now. When I launch debug, I get two
suspended
> > threads and a command window that doesn't show up anything. Nothing is
> > happening at this point. If I do Run/Resume, I get an error message:
> > Resume failed.
> > Reason:
> > Exceptions occured attempting to resume.
> > Details: Target request failed: Target is not responding (timed out)
>
> > Have I missed a configuration?
>
> > Martin
>
>
Re: Can't debug with CDT [message #93308 is a reply to message #87599] Tue, 03 February 2004 09:38 Go to previous message
Eclipse UserFriend
Originally posted by: cheukht.hk.ibm.com

Martin,

I got the same error and could not debug at the very first time when
switched to 3.0M6. But the problem has been solved now, for me, the root
cause is I have choosen the release build to debug. After I delete the
existing debug configuration and re-create again, I found that when I
pressed the [search...] button (next to C/C++ Application text box), there
are two builds, one is release build and the another is debug, you can tell
by it's icon which is which. I remember there is only release build the
first time I create the debug configuration, that's why I've choosen the
release build for debug. But this time I try the build with a debug icon and
tried again, it works now!


--
Thomas Cheuk
Advisory I/T Specialist
Software Group, IBM Hong Kong


"Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
news:bq63o9$hfn$1@eclipse.org...
> I have verified if gdb was running. It is running along with the
> application. There are error messages on the console though:
>
> info threads
> No registers.
> info program
> Using the running image of child thread 3424.0xd8c.
> Program stopped at 0x4010be.
> It stopped at a breakpoint that has since been deleted.
> Type "info stack" or "info registers" for more information.
> info threads
> 2 thread 3424.0x30c * 1 thread 3424.0xd8c
>
> This seem to be the cause of my problem, but I can't figure out what it
> means.
>
> Martin
>
> Mikhail Khodjaiants wrote:
>
> > Looks like gdb is not responding. Check if it is running at the time
when
> > you are trying to resume.
>
> > "Martin Dubuc" <mdubuc@ca.ibm.com> wrote in message
> > news:bq40lm$4ca$1@eclipse.org...
> > > I have installed eclipse 3.0M5 and CDT 2.0M5RC1. I have Cygwin
installed
> > > on my machine. The cygwin distribution is fairly new (September 2003).
I
> > > am running eclipse/CDT on Windows XP.
> > >
> > > I have been able to compile a simple Hello World application. I can
run
> > > it. I would like to debug it now. When I launch debug, I get two
suspended
> > > threads and a command window that doesn't show up anything. Nothing is
> > > happening at this point. If I do Run/Resume, I get an error message:
> > > Resume failed.
> > > Reason:
> > > Exceptions occured attempting to resume.
> > > Details: Target request failed: Target is not responding (timed out)
> > >
> > > Have I missed a configuration?
> > >
> > > Martin
> > >
>
>
Previous Topic:Help - debugger can't find source
Next Topic:Configuring CDT to build a Library
Goto Forum:
  


Current Time: Fri May 09 14:40:20 EDT 2025

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

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

Back to the top