Hi: This is my first time using code::blocks. I'm migrating from Dev-C++. First of all, I just want to say this distribution is better than Dev! Good work people. On to my problem: I'm new to installing IDE's, so please bear with me.
These are the steps that I took:
Installed the official release with the MingW compiler
Found out that when debugging, the message "debugging information not found, blah..." error
Searched for a while in the forums for solution and did the following:
Downloaded the latest nightly build (today).
Unzipped it on top of the old installation.
Made sure the "produce debugging symbols" box is checked.
I made a new user variable "codeblock" and its value is "c:\programfiles\codeblocks\bin"
I also added the path to the system variable "Path"
The darn thing would not work and gives me the debugger output:
Selecting target: default
Compiling: done
Adding source dir: D:\Docs\GradSchool\Research\EngineControl\MineInCppCodeBlock\
Adding source dir: D:\Docs\GradSchool\Research\EngineControl\MineInCppCodeBlock\
Adding file: MineInCppCodeBlock.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
Program exited normally.
Debugger finished with status 0
Does anyone know whats going on? Am I not supposed to unzip over the old installation? I'm baffled. If anyone can help, I would greatly appreciate it.
QuoteAm I not supposed to unzip over the old installation?
Yes, do not unzip on top of the RC2 install...
QuoteMade sure the "produce debugging symbols" box is checked.
Checking the box is not enough: you must rebuild your project.
indeed do not mix nightly and rc2.
Just start with a clean sheet, i would advice to manually install Mingw and the cb nightlyl.
This is described as the first parts of the nightly cookbook : http://wiki.codeblocks.org/index.php?title=Nightly_Cookbook
Thanks for the quick reply. I have one question. I'm on the last step in building the nightly build. I accidentally put in the wrong global variable path. How do I redefine it? Everytime I reopen the "CbProjects.workspace" file, it does not let me redefine them...
settings menu -> global variables ;-)
cool men : you are now even building CB.
Hi.
I'm tring to debug under windows also.
Using C::B. Build 21/03/2006 under Windows XP
GDB 6.3.2
Source compiled with -g.
The program not stop at break points.
From debbuger window:
Selecting target: debbug
Compiling: done
Adding source dir: D:\CodeBlocks\bygfoot\bygfoot2-unstable\
Adding source dir: D:\CodeBlocks\bygfoot\bygfoot2-unstable\
Adding file: bygfoot.exe
Starting debugger: done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
No symbol table is loaded. Use the "file" command.
Program exited normally.
Debugger finished with status 0
I have also the logs from GDB
Command-line: D:\CodeBlocks\bin\gdb.exe -nx -fullname -args bygfoot.exe
Working dir : D:\CodeBlocks\bygfoot\bygfoot2-unstable\
> set prompt (gdb)
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...(no debugging symbols found)
(gdb) (gdb)
> set confirm off
(gdb)
> set width 0
(gdb)
> set height 0
(gdb)
> set breakpoint pending on
(gdb)
> set print asm-demangle on
(gdb)
> set disassembly-flavor intel
(gdb)
> directory D:/CodeBlocks/bygfoot/bygfoot2-unstable/
(gdb)
> delete breakpoints
(gdb)
> break src/window.c:139
No symbol table is loaded. Use the "file" command.
(gdb)
> break src/window.c:74
No symbol table is loaded. Use the "file" command.
(gdb)
> break src/window.c:105
No symbol table is loaded. Use the "file" command.
(gdb)
> break src/window.c:87
No symbol table is loaded. Use the "file" command.
(gdb)
> break src/window.c:111
No symbol table is loaded. Use the "file" command.
(gdb)
> run
Program exited normally.
(gdb)
> quit
Any help?
My problem is that when I downloaded cbd.exe from the MingW website, I just copied into the MingW/bin/ directory. However, the executable is a self-extracting zip file! Execute it and unzip it into MingW dir.
Quote from: darkwalk on March 25, 2006, 06:33:54 PM
My problem is that when I downloaded cbd.exe from the MingW website, I just copied into the MingW/bin/ directory. However, the executable is a self-extracting zip file! Execute it and unzip it into MingW dir.
I have instaled GDB ok from http://sourceforge.net/projects/mingw/
You can see in the logs that GNU gdb 6.3 is executed.
But.. look this line of the log
(gdb)
> delete breakpoints
It's normal?
Maybe my problems to debug are related to this post http://forums.next.codeblocks.org/index.php?topic=2736.0;topicseen (http://forums.next.codeblocks.org/index.php?topic=2736.0;topicseen)