Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\
Adding source dir: C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\
Adding file: C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\bin\Debug\NewProject.exe
Changing directory to: C:/Users/Piotrek/Documents/CodeBlocksWorkspace/NewProject/.
Set variable: PATH=.;C:\CodeBlocks\MinGW\bin;C:\CodeBlocks\MinGW;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\MATLAB\R2013a\runtime\win64;C:\Program Files\MATLAB\R2013a\bin;C:\Program Files\Microsoft\Web Platform Installer;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit
[debug]Command-line: C:\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/Users/Piotrek/Documents/CodeBlocksWorkspace/NewProject/bin/Debug/NewProject.exe
[debug]Working dir : C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject
Starting debugger: C:\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args C:/Users/Piotrek/Documents/CodeBlocksWorkspace/NewProject/bin/Debug/NewProject.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\bin\Debug\NewProject.exe...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.5
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory C:/Users/Piotrek/Documents/CodeBlocksWorkspace/NewProject/
[debug]Source directories searched: C:/Users/Piotrek/Documents/CodeBlocksWorkspace/NewProject;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "C:/Users/Piotrek/Documents/CodeBlocksWorkspace/NewProject/main.cpp:8"
[debug]Breakpoint 2 at 0x40135a: file C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp, line 8.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\bin\Debug\NewProject.exe
Child process PID: 7872
[debug][New Thread 7872.0x1258]
[debug]Breakpoint 2, main () at C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8
[debug]C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8:88:beg:0x40135a
[debug]>>>>>>cb_gdb:
At C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8
[debug]> next
[debug]0x004496c4 in std::ostream::operator<<(double) ()
[debug]>>>>>>cb_gdb:
In std::ostream::operator<<(double) () ()
[debug]> bt 30
[debug]#0 0x004496c4 in std::ostream::operator<<(double) ()
[debug]#1 0x758d1162 in onexit () from C:\Windows\syswow64\msvcrt.dll
[debug]#2 0x75925bc4 in msvcrt!atexit () from C:\Windows\syswow64\msvcrt.dll
[debug]Backtrace stopped: previous frame inner to this frame (corrupt stack?)
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]Single stepping until exit from function _ZNSolsEd,
[debug]which has no line number information.
[debug]0x00448018 in std::ostream& std::ostream::_M_insert<double>(double) ()
[debug]>>>>>>cb_gdb:
In std::ostream& std::ostream::_M_insert<double>(double) () ()
[debug]> bt 30
[debug]#0 0x00448018 in std::ostream& std::ostream::_M_insert<double>(double) ()
[debug]#1 0x00401371 in main () at C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8
[debug]>>>>>>cb_gdb:
[debug]> frame 1
[debug]#1 0x00401371 in main () at C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8
[debug]C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8:88:beg:0x401371
[debug]>>>>>>cb_gdb:
#1 0x00401371 in main () at C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8
C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8:88:beg:0x401371
At C:\Users\Piotrek\Documents\CodeBlocksWorkspace\NewProject\main.cpp:8
[debug]> next
[debug]127 ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c: No such file or directory.
[debug]Single stepping until exit from function _ZNSo9_M_insertIdEERSoT_,
[debug]which has no line number information.
[debug]_Unwind_SjLj_Register (fc=0x28fe8c) at ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c:127
[debug]>>>>>>cb_gdb:
I used only Watches window.
I have this from Callstack window: std::ostream& std::ostream::_M_insert<double>(double) () (??:??)
I don't know what is backtrace window?!
I've installed C::B on my PC yesterday and I was trying to test this IDE and I obtained this problem.
Microsoft Windows [Wersja 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Wszelkie prawa zastrzeżone.
C:\Users\Piotrek>cd ..
C:\Users>cd ..
C:\>cd CodeBlocks
C:\CodeBlocks>cd MinGW
C:\CodeBlocks\MinGW>cd bin
C:\CodeBlocks\MinGW\bin>gdb
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) file plik
Reading symbols from C:\CodeBlocks\MinGW\bin\plik.exe...done.
(gdb) break main
Breakpoint 1 at 0x401342
(gdb) run > outfile.txt
Starting program: C:\CodeBlocks\MinGW\bin\plik.exe > outfile.txt
[New Thread 1664.0x1eec]
Breakpoint 1, 0x00401342 in main ()
(gdb) next
Single stepping until exit from function main,
which has no line number information.
0x004496d4 in std::ostream::operator<<(double) ()
(gdb) next
Single stepping until exit from function _ZNSolsEd,
which has no line number information.
0x00448028 in std::ostream& std::ostream::_M_insert<double>(double) ()
(gdb) next
Single stepping until exit from function _ZNSo9_M_insertIdEERSoT_,
which has no line number information.
_Unwind_SjLj_Register (fc=0x28fe8c)
at ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c:127
127 ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c: No such file or director
y.
(gdb) next
129 in ../../../../src/gcc-4.7.1/libgcc/unwind-sjlj.c
I have something like that.
Now I'm going to build options:
I have set on in Debug and Release:
- Produce debugging symbols [-g]
- Enable all compiler warnings [-Wall]
- Have g++ follow the C++11 ISO bla bla bla [-std=c++11]
Nothing more.
I will try on my laptop. If there will be the same issue I don't know what will should I do.
On laptop the same problem. So I don't know what's going on.
I`m sorry, looks like I was wrong, it is not Linux line endings. The problem is when CR (0x0D) line endings are used in source file. So, my question about Linux is meaningless. But may be topic starter still has same problem with CR line ends.
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: E:\DENIS\Projects\zzzzzzzzzzzz\
Adding source dir: E:\DENIS\Projects\zzzzzzzzzzzz\
Adding file: E:\DENIS\Projects\zzzzzzzzzzzz\bin\Debug\zzzzzzzzzzzz.exe
Changing directory to: E:/DENIS/Projects/zzzzzzzzzzzz/.
Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Resource\bin;C:\Program Files\TortoiseSVN\bin
[debug]Command-line: C:\Program Files (x86)\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args E:/DENIS/Projects/zzzzzzzzzzzz/bin/Debug/zzzzzzzzzzzz.exe
[debug]Working dir : E:\DENIS\Projects\zzzzzzzzzzzz
Starting debugger: C:\Program Files (x86)\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args E:/DENIS/Projects/zzzzzzzzzzzz/bin/Debug/zzzzzzzzzzzz.exe
done
[debug]> set prompt >>>>>>cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
[debug]Reading symbols from E:\DENIS\Projects\zzzzzzzzzzzz\bin\Debug\zzzzzzzzzzzz.exe...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law. Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off
Debugger name and version: GNU gdb (GDB) 7.5
[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> catch throw
[debug]Catchpoint 1 (throw)
[debug]>>>>>>cb_gdb:
[debug]> source C:\Program Files (x86)\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory E:/DENIS/Projects/zzzzzzzzzzzz/
[debug]Source directories searched: E:/DENIS/Projects/zzzzzzzzzzzz;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "E:/DENIS/Projects/zzzzzzzzzzzz/main.cpp:7"
[debug]Breakpoint 2 at 0x40134a: file E:\DENIS\Projects\zzzzzzzzzzzz\main.cpp, line 7.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: E:\DENIS\Projects\zzzzzzzzzzzz\bin\Debug\zzzzzzzzzzzz.exe
Child process PID: 732
[debug][New Thread 732.0x12c8]
[debug]Breakpoint 2, main () at E:\DENIS\Projects\zzzzzzzzzzzz\main.cpp:7
[debug]>>>>>>cb_gdb:
And in case of good source file, changes are only in those last lines:
Child process PID: 4820
[debug][New Thread 4820.0xf70]
[debug]Breakpoint 2, main () at E:\DENIS\Projects\zzzzzzzzzzzz\main.cpp:7
[debug]E:\DENIS\Projects\zzzzzzzzzzzz\main.cpp:7:62:beg:0x40134a
[debug]>>>>>>cb_gdb:
At E:\DENIS\Projects\zzzzzzzzzzzz\main.cpp:7
So, added only one line "... main.cpp:7:62:beg:0x40134a", and successfull "at ...\main.cpp:7" in the end.