Im using gcc on windows (cygwin) and am currently using GDB to debug a program.
But I find the console interface rather clumsy. Is there a better, more windowslike alternative that works immediately with gcc?
Im using gcc on windows (cygwin) and am currently using GDB to debug a program.
But I find the console interface rather clumsy. Is there a better, more windowslike alternative that works immediately with gcc?
Code::Blocks and Dev-C++ ought to have debugging support.
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
and they actually run as gui windows apps so you don't see the cli underpinnings at all.
Originally Posted by Jeff Henager
ok thanks. which one would you recommend?
I forgot to tell that I make binaries for the coldfire m68k processor with gcc.
and the project outline is like this.
src\
src\dir1
src\dir2
etc
The src dir contains a makefile that contains global setting and every subdir contains a makefile that contains all the C sourcefiles to include.
I made a project with codeblocks and added all directories, makefiles and sources to it. But the very first C source doesnt compile because it cant find an included header in the same directory. Do I need special options for that or how do I fix that?
It should work as long as you use double quotes instead of angle brackets:But the very first C source doesnt compile because it cant find an included header in the same directory. Do I need special options for that or how do I fix that?
But if not, you could always add "-I ." to GCC's command line.Code:#include "header.h"
Also, something important to note: when GCC uses optimisations, it can really mess up GDB. I don't know if your compiler options include enabled optimisations, but if they do, try turning them off if, when you debug a program, the current line keeps jumping around.
dwk
Seek and ye shall find. quaere et invenies.
"Simplicity does not precede complexity, but follows it." -- Alan Perlis
"Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
"The only real mistake is the one from which we learn nothing." -- John Powell
Other boards: DaniWeb, TPS
Unofficial Wiki FAQ: cpwiki.sf.net
My website: http://dwks.theprogrammingsite.com/
Projects: codeform, xuni, atlantis, nort, etc.