User forums > Help

Debugger doesn't work

<< < (3/4) > >>

AndrewCot:
The forums have a search function that allow you to find previous posts that may help.

If you search for "GDB upgrade" then the relevant post is in the first 10 results.

pocoloco:

--- Quote from: AndrewCot on May 13, 2022, 12:20:16 am ---The forums have a search function that allow you to find previous posts that may help.

If you search for "GDB upgrade" then the relevant post is in the first 10 results.

--- End quote ---

Tried version 12 and 11 from here and I still get the same error.

If anyone knows the answer to this please reply, I have set the notification on the thread.

But I myself have completely given up. I spent hours Wednesday getting this to work unsuccessfully, and then yesterday another 4-5 hours trying to install Visual Studio on a virtual machine.
The thing is I hate Visual Studio with all my heart due to dozens of gigabytes of unnecessary bloatware it installs without asking you and the fact that it has an online installer. Tried a few and finally managed to install the 2012 version with an offline installer.

I like CodeBlocks because it is very lightweight and I can install it on my real machine. I would never install Visual Studio and all its junk on my real machine.

But evidently a simple lightweight IDE you can code simple C++ programs in on Windows is too much to ask nowadays.

AndrewCot:
So now you have a "working" GDB as in should.
Can you do the following:
1) Zip up your project file and the main.cpp and attach it as a zip file.
2) Can you also zip up the following file and attach the zip:     C:\Users\<your user name>\AppData\Roaming\CodeBlocks\default.conf
3) Can you also include the output from the following Codeblocks dialog as text:      a) Select the Help->About menu      b) Click on the information tab
      c) Select the text in the information tab and copy it into the response post.
BTW Nothing to do with C::B, but your path indicates you have a number of different things installed that you may want to check out for upgrades and also check the path to see what gets found before other apps in the path as you have multiple Unix utils in different directories. I have been burnt in the past with the path having old unix utilities before the newer ones....

AndrewCot:
Can you also include the Codeblocks build log.
I have done some testing with the codeblocks-20.03mingw-nosetup.zip and tried with spaces in the C::B directory and GDB 8.1 and my hello world works.

pocoloco:

--- Quote from: AndrewCot on May 13, 2022, 09:14:19 am ---So now you have a "working" GDB as in should.
Can you do the following:
1) Zip up your project file and the main.cpp and attach it as a zip file.
2) Can you also zip up the following file and attach the zip:     C:\Users\<your user name>\AppData\Roaming\CodeBlocks\default.conf
3) Can you also include the output from the following Codeblocks dialog as text:      a) Select the Help->About menu      b) Click on the information tab
      c) Select the text in the information tab and copy it into the response post.
BTW Nothing to do with C::B, but your path indicates you have a number of different things installed that you may want to check out for upgrades and also check the path to see what gets found before other apps in the path as you have multiple Unix utils in different directories. I have been burnt in the past with the path having old unix utilities before the newer ones....

--- End quote ---

I've attached the files.
And here's the info:

--- Code: ---Name             : Code::Blocks
Version          : 20.03-r11983
SDK Version      : 2.0.0
Scintilla Version: 3.7.5
Author           : The Code::Blocks Team
E-mail           : info@codeblocks.org
Website          : http://www.codeblocks.org

wxWidgets Library (wxMSW port)
Version 3.1.3 (Unicode: wchar_t, debug level: 1),
compiled at Nov  1 2019 18:53:26

Runtime version of toolkit used is 10.0.

--- End code ---

I think the problem lies with the gdb itself tho.
I'm not familiar with how it works, but when I try to invoke it directly using CMD and outside of C::B I still get the same message.
Namely, when I run this:

--- Code: ---"C:\Program Files\CodeBlocks\MinGW\bin\gdb.exe" -nx -fullname -quiet  -args C:/sample/bin/Debug/sample.exe

--- End code ---

gdb starts and says:

--- Code: ---Reading symbols from C:/sample/bin/Debug/sample.exe...
(gdb)

--- End code ---

And then when I enter "target exec" I get this response:

--- Code: ---(gdb) target exec
No executable file now.
(gdb)

--- End code ---

I'm not sure but I think it fails to "import" the exe file or whatever.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version