Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Can't debug existing project.
Can't debug existing project. [message #1748527] Thu, 24 November 2016 01:34 Go to next message
Vl Last is currently offline Vl LastFriend
Messages: 14
Registered: November 2016
Junior Member
I can debug simple "Hallo World" project, but I can't debug my old project from bitbucket. My old project compilate and running, but when I try dedug it it says "<terminated, exit value: 0>gdb (7.6.1)".
Location of old project is "E:\Programming\Repository\git\game", location of new "Hallo world" project is "E:\Programming\workspaces\hallo". What wrong with my old project? I use MinGW.
  • Attachment: dbg1.png
    (Size: 69.42KB, Downloaded 385 times)
  • Attachment: dbg2.png
    (Size: 74.20KB, Downloaded 359 times)
  • Attachment: dbg3.png
    (Size: 80.13KB, Downloaded 345 times)
Re: Can't debug existing project. [message #1748708 is a reply to message #1748527] Sun, 27 November 2016 12:18 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Are you sure it was compiled with debugging information (-g switch)?
What is in the gdb trace console when you try to debug the program?
Re: Can't debug existing project. [message #1748713 is a reply to message #1748708] Sun, 27 November 2016 13:58 Go to previous messageGo to next message
Vl Last is currently offline Vl LastFriend
Messages: 14
Registered: November 2016
Junior Member
Yes, is compilate with -g3
gdb location is C:\MinGW\bin
http://s020.radikal.ru/i719/1611/3a/b9b8e2df1f16.png
http://s12.radikal.ru/i185/1611/cc/b119adc6884a.png
Re: Can't debug existing project. [message #1748714 is a reply to message #1748713] Sun, 27 November 2016 15:31 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
What is in the gdb trace console when you try to debug the program?
Re: Can't debug existing project. [message #1748716 is a reply to message #1748713] Sun, 27 November 2016 18:53 Go to previous messageGo to next message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
Is C:\MinGW\bin in the PATH environment variable? When it cannot find a DLL, it silently fails, so maybe it's because of that. Putting C:\MinGW\bin in PATH might help gdb.exe find its DLLs.
Re: Can't debug existing project. [message #1748720 is a reply to message #1748716] Sun, 27 November 2016 21:47 Go to previous messageGo to next message
Vl Last is currently offline Vl LastFriend
Messages: 14
Registered: November 2016
Junior Member
@David VavraFriendsory, I can use just "gdb" to launch it from console.
@Marc-André LaperleFriend yes, it is in path.
http://s012.radikal.ru/i319/1611/64/37d41364b27d.png

[Updated on: Sun, 27 November 2016 21:53]

Report message to a moderator

Re: Can't debug existing project. [message #1748723 is a reply to message #1748720] Sun, 27 November 2016 22:34 Go to previous messageGo to next message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
Maybe it's your program's DLLs that can't be found? irrlicht for example? Just trowing some ideas Smile
Re: Can't debug existing project. [message #1748724 is a reply to message #1748723] Sun, 27 November 2016 22:47 Go to previous messageGo to next message
Vl Last is currently offline Vl LastFriend
Messages: 14
Registered: November 2016
Junior Member
I have Irrlicht in /Debug folder and in project folder.
http://s11.radikal.ru/i183/1611/71/e76fa5772db5.png
Re: Can't debug existing project. [message #1748751 is a reply to message #1748724] Mon, 28 November 2016 10:26 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You only included the first part of the debug log. Note the vertical scollbar.
There is a button on the toolbar of the Console view that will save the contents to a file.
Resembles a floppy and has '...' under it.

Alternately you could right-click on the view; click Select All ; then copy and paste it into a file.

upload the file instead of the image.

EDIT:
You got the wrong gdb console.
You provided the debug console instead of the trace console.
The trace console has 'gdb trace'in the title.
But now that I've thought about it, send both (as separate files).

[Updated on: Mon, 28 November 2016 10:37]

Report message to a moderator

Re: Can't debug existing project. [message #1748755 is a reply to message #1748751] Mon, 28 November 2016 12:21 Go to previous messageGo to next message
Vl Last is currently offline Vl LastFriend
Messages: 14
Registered: November 2016
Junior Member
gdb console and gdb traces console.
Re: Can't debug existing project. [message #1748758 is a reply to message #1748755] Mon, 28 November 2016 12:45 Go to previous messageGo to next message
Marc-André Laperle is currently offline Marc-André LaperleFriend
Messages: 256
Registered: July 2009
Senior Member
I see
"371,759 25^error,msg="During startup program exited with code 0xc0000139."
I found this:
http://stackoverflow.com/questions/795391/loadlibrary-fails-first-chance-exception-0xc0000139-dll-not-found-how-to-de

Perhaps there is more info about the error in the Event Viewer, see https://technet.microsoft.com/en-us/library/cc766401(v=ws.11).aspx
I could be good to check with a tool like Dependency Walker to see all dependencies you need and make sure they are loadable.
Re: Can't debug existing project. [message #1748760 is a reply to message #1748758] Mon, 28 November 2016 13:01 Go to previous messageGo to next message
Vl Last is currently offline Vl LastFriend
Messages: 14
Registered: November 2016
Junior Member
Thanks, but project running is OK. If it was dependencies I think the problem would to be whith running too.
Re: Can't debug existing project. [message #1748768 is a reply to message #1748760] Mon, 28 November 2016 13:55 Go to previous message
Vl Last is currently offline Vl LastFriend
Messages: 14
Registered: November 2016
Junior Member
Ok, it seems to gebugging. Thanks a lot.
I use Dependency Walker and it says me some problem whith:
Gpsvc.dll
IEShims.dll
libstdc++-6.dll
sysntfy.dll

I find x86 version of them and add into /Debug folder of my project.
Is the problem was cause by x64 version of OS and 32x version of Irrlicht?
Previous Topic:How disable the discovery ?
Next Topic:How to edit built-in include paths?
Goto Forum:
  


Current Time: Fri Mar 29 10:41:17 GMT 2024

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

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

Back to the top