Bug #17862 2011-01-18 12:01
agnar
Debugger does not stop at cursor or breakpoints
The following is from debugger log file -> No source file named C:/Users/Agnar Már/Documents/C++/enneinprufan/main.cpp in loaded symbols. The file does exist but the path is suspicious. This is a character encoding bug as: C:\Users\Agnar Már\Documents\C++\enneinprufan\ != C:/Users/Agnar Már/Documents/C++/enneinprufan/main.cpp Below, please find enclosed the debugger log file. ============================== PATH=.;C:\Program Files\CodeBlocks\MinGW\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Common Files\ArcSoft\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Pinnacle\Shared Files\;C:\Program Files\Pinnacle\Shared Files\Filter\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Windows Live\Shared;C:\Min2GW32\bin Command-line: C:\Program Files\CodeBlocks\MinGW\bin\gdb.exe -nx -fullname -quiet -args bin/Debug/enneinprufan.exe Working dir : C:\Users\Agnar Már\Documents\C++\enneinprufan\ > set prompt >>>>>>cb_gdb: (gdb) >>>>>>cb_gdb: > show version GNU gdb 6.8 Copyright (C) 2008 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". >>>>>>cb_gdb: > set confirm off >>>>>>cb_gdb: > set width 0 >>>>>>cb_gdb: > set height 0 >>>>>>cb_gdb: > set breakpoint pending on >>>>>>cb_gdb: > set print asm-demangle on >>>>>>cb_gdb: > set unwindonsignal on >>>>>>cb_gdb: > set debugevents on >>>>>>cb_gdb: > set new-console on >>>>>>cb_gdb: > set disassembly-flavor att >>>>>>cb_gdb: > catch throw Catchpoint 1 (throw) >>>>>>cb_gdb: > source C:\Program Files\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb >>>>>>cb_gdb: > directory C:/Users/AGNARM~1/DOCUME~1/C__~1/ENNEIN~1/ >>>>>>cb_gdb: > tbreak "C:/Users/Agnar Már/Documents/C++/enneinprufan/main.cpp:8" No source file named C:/Users/Agnar Már/Documents/C++/enneinprufan/main.cpp in loaded symbols. Breakpoint 2 ("C:/Users/Agnar Már/Documents/C++/enneinprufan/main.cpp:Cool pending. >>>>>>cb_gdb: > run gdb: win32_init_thread_list [New thread 5280.0x14a4] Program exited normally. >>>>>>cb_gdb: > set debugevents off >>>>>>cb_gdb: > quit
- Category
- Debugger
- Group
- Status
- Open
- Close date
- Assigned to
History
agnar 2011-01-18 12:27
This has already been reported:
http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces
ollydbg 2011-03-22 13:37
1, you have files with "space" in it's path, this will cause some gdb problem
2, are you sure the breakpoint should be reached?
please supply a simple test case, and we can discuss this on the c::b's forum. (write a post there please)
oh, you have already find the cause, so this bug should be closed!.