Author Topic: Unable to stop debug  (Read 11330 times)

Offline AJT

  • Single posting newcomer
  • *
  • Posts: 2
Unable to stop debug
« on: September 03, 2009, 09:00:46 pm »
I have been using 8.02 for a while and decided to manually install codeblocks to get the latest updates and all the plugins.  I followed as closely as possible the installation method explained in the WIKI and in the manual but I have not been able to figure out a failure to stop the debugger gdb when used in CodeBlocks.

I can build and run 'Hello World' that is created as default code created by selecting a new console project.  The code builds and runs fine.  If I try to debug the programme it seems to hang and I cannot force it to stop.  Hitting the red cross produces "trying to pause the running process".  Selecting build and run, asks if I wish to stop the debugger, I say yes and it responds "unable to stop the debug process" then the code executes in the output window with return 0.  Pressing any key to continue leaves me in the same state with debug still running. If I close CodeBlocks I get a few error screens and finally unable to stop gdb.exe and then it closes.


System Windows Vista pc
gnu gdb 5.2.1
gcc 4.4.0
g++ 4.4.0
wxwidgets 2.8.10
update.bat was run yesterday for the latest files and Codeblocks was built from this.
Codeblocks says svnbuild 0 (unkown date) gcc 4.4.0 Windows/unicode and in the top left it says Code::Blocks svn build.

this is a typical output in the debug field at the bottom of the screen;
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: E:\A's Files\Programming\c++\newtest\
Adding source dir: E:\A's Files\Programming\c++\newtest\
Adding file: bin\Debug\newtest.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

What have I failed to do?  I can't find a solution so far. :?

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Unable to stop debug
« Reply #1 on: September 03, 2009, 09:09:28 pm »
gnu gdb 5.2.1
This is very too old, especially for the compiler you're using. Try a more recent one. IIRC GDB 6.8 is the current version.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline AJT

  • Single posting newcomer
  • *
  • Posts: 2
Re: Unable to stop debug
« Reply #2 on: September 04, 2009, 05:19:38 am »
Thankyou....I did not realise Current Release was not up to date :o!

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Unable to stop debug
« Reply #3 on: September 04, 2009, 06:31:13 am »
Thankyou....I did not realise Current Release was not up to date :o!
It was... at least the time it was released. But if you do a compiler update you have to ensure to update all the other tool, too.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ