Code::Blocks Forums

User forums => Help => Topic started by: Giovanni62 on July 27, 2014, 11:21:22 am

Title: [SOLVED] gdb.exe - there is no disk
Post by: Giovanni62 on July 27, 2014, 11:21:22 am
http://forums.codeblocks.org/index.php/topic,19288.0.html

 ??? I followed the link, but unfortunately when I run the debugger, before you go out, I see a message "There is no disk in the drive. Please insert a disk into drive H:" and also in the frame "Logs & others",I see a message  "Can not open file: h :/ crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c"

Code::Blocks 13.12 on Wondows 8.1 64bit
Title: Re: gdb.exe - there is no disk
Post by: Giovanni62 on July 28, 2014, 02:01:56 pm
Is there someone who codeblocks 13.12, installed on windows 8.1, it works without any problems?
Title: Re:
Post by: MortenMacFly on July 28, 2014, 10:28:26 pm
Yes, me.
Title: Re: gdb.exe - there is no disk
Post by: BlueHazzard on July 28, 2014, 11:31:31 pm
"Can not open file: h :/ crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c"
there seems something wrong with your path... there shouldn't be any whitespaces...

what is this "h :/ crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c" ???


[Edit:] Have you tried the tdm gdb?
Title: Re: gdb.exe - there is no disk
Post by: Giovanni62 on July 29, 2014, 12:49:07 am
I have installed TDM64 Bundle http://tdm-gcc.tdragon.net (http://tdm-gcc.tdragon.net), and then I have set the "toolchain executable" in the Code::Blocks. When I run the debugger, before F4 and after F7, at the end, I have the pop-up message "gdb.exe - No disk in the drive - Please insert a disk in drive H:". After clic the Cancel Button repeatedly, appears in the frame "Logs & others" : Can not open file: h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
Title: Re: gdb.exe - there is no disk
Post by: BlueHazzard on July 29, 2014, 06:43:19 am
Have you tried to run the debugger from comand line?
Title: Re: gdb.exe - there is no disk
Post by: oBFusCATed on July 29, 2014, 09:38:25 am
Can you post the full log from debugger (you have to enable it in the settings)?
Title: Re: gdb.exe - there is no disk
Post by: Giovanni62 on July 29, 2014, 10:48:40 am
(https://dl.dropboxusercontent.com/u/6357348/Cattura1.PNG)
(https://dl.dropboxusercontent.com/u/6357348/Cattura2.PNG)
(https://dl.dropboxusercontent.com/u/6357348/Cattura3.PNG)
(https://dl.dropboxusercontent.com/u/6357348/Cattura4.PNG)
(https://dl.dropboxusercontent.com/u/6357348/Cattura5.PNG)
Title: Re: gdb.exe - there is no disk
Post by: oBFusCATed on July 29, 2014, 08:59:12 pm
Now go to the settings of the debugger and enable full logging. The post the log again. You can copy paste it instead of posting screen shots.  (please use code tags for the log).
Title: Re: gdb.exe - there is no disk
Post by: Giovanni62 on July 29, 2014, 11:01:28 pm
This is full log

Code
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\
Adding source dir: C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\
Adding file: C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\bin\Debug\IncapsulamentoYT03.exe
Changing directory to: C:/Users/Giovanni/Documents/ProgettiCodeBlocks/IncapsulamentoYT03/.
Set variable: PATH=.;C:\TDM-GCC-64\bin;C:\TDM-GCC-64;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\Calibre2;C:\texlive\2014\bin\win32

[debug]Command-line: C:\TDM-GCC-64\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/Giovanni/Documents/ProgettiCodeBlocks/IncapsulamentoYT03/bin/Debug/IncapsulamentoYT03.exe
[debug]Working dir : C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03

Starting debugger: C:\TDM-GCC-64\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/Giovanni/Documents/ProgettiCodeBlocks/IncapsulamentoYT03/bin/Debug/IncapsulamentoYT03.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\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\bin\Debug\IncapsulamentoYT03.exe...
[debug]done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.6.1
[debug]Copyright (C) 2013 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 "x86_64-w64-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.6.1

[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 C:/Users/Giovanni/Documents/ProgettiCodeBlocks/IncapsulamentoYT03/
[debug]Source directories searched: C:/Users/Giovanni/Documents/ProgettiCodeBlocks/IncapsulamentoYT03;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> tbreak "C:/Users/Giovanni/Documents/ProgettiCodeBlocks/IncapsulamentoYT03/main.cpp:7"
[debug]Temporary breakpoint 2 at 0x4014fd: file C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp, line 7.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:/Users/Giovanni/Documents/ProgettiCodeBlocks/IncapsulamentoYT03/bin/Debug/IncapsulamentoYT03.exe

Child process PID: 5940

[debug][New Thread 5940.0x1738]
[debug]Temporary breakpoint 2, main () at C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp:7
[debug]C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp:7:62:beg:0x4014fd
[debug]>>>>>>cb_gdb:

At C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp:7

[debug]> next
[debug]C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp:8:98:beg:0x40151f
[debug]>>>>>>cb_gdb:

At C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp:8

[debug]> next
[debug]C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp:9:113:beg:0x401524
[debug]>>>>>>cb_gdb:

At C:\Users\Giovanni\Documents\ProgettiCodeBlocks\IncapsulamentoYT03\main.cpp:9

[debug]> next
[debug]334 h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c: No such file or directory.
[debug]__fu0__set_invalid_parameter_handler () at h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:334
[debug]>>>>>>cb_gdb:
[debug]> info frame
[debug]Stack level 0, frame at 0x23ff30:
[debug] rip = 0x4013b5 in __tmainCRTStartup (h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:334); saved rip 0x4014e8
[debug] called by frame at 0x23ff60
[debug] source language c.
[debug] Arglist at 0x23fe58, args:
[debug] Locals at 0x23fe58, Previous frame's sp is 0x23ff30
[debug] Saved registers:
[debug]  rbx at 0x23fef8, rsi at 0x23ff00, rdi at 0x23ff08, rbp at 0x23ff10, r12 at 0x23ff18, r13 at 0x23ff20, rip at 0x23ff28, xmm15 at 0x23ff28
[debug]>>>>>>cb_gdb:

Cannot open file: h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
At h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:334

[debug]> next
[debug]332 in h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
[debug]>>>>>>cb_gdb:
[debug]> info frame
[debug]Stack level 0, frame at 0x23ff30:
[debug] rip = 0x4013bc in __tmainCRTStartup (h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:332); saved rip 0x4014e8
[debug] called by frame at 0x23ff60
[debug] source language c.
[debug] Arglist at 0x23fe58, args:
[debug] Locals at 0x23fe58, Previous frame's sp is 0x23ff30
[debug] Saved registers:
[debug]  rbx at 0x23fef8, rsi at 0x23ff00, rdi at 0x23ff08, rbp at 0x23ff10, r12 at 0x23ff18, r13 at 0x23ff20, rip at 0x23ff28, xmm15 at 0x23ff28
[debug]>>>>>>cb_gdb:

Cannot open file: h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
At h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:332

[debug]> next
[debug]334 in h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
[debug]>>>>>>cb_gdb:
[debug]> info frame
[debug]Stack level 0, frame at 0x23ff30:
[debug] rip = 0x4013c2 in __tmainCRTStartup (h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:334); saved rip 0x4014e8
[debug] called by frame at 0x23ff60
[debug] source language c.
[debug] Arglist at 0x23fe58, args:
[debug] Locals at 0x23fe58, Previous frame's sp is 0x23ff30
[debug] Saved registers:
[debug]  rbx at 0x23fef8, rsi at 0x23ff00, rdi at 0x23ff08, rbp at 0x23ff10, r12 at 0x23ff18, r13 at 0x23ff20, rip at 0x23ff28, xmm15 at 0x23ff28
[debug]>>>>>>cb_gdb:

Cannot open file: h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
At h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:334

[debug]> next
[debug]335 in h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
[debug]>>>>>>cb_gdb:
[debug]> info frame
[debug]Stack level 0, frame at 0x23ff30:
[debug] rip = 0x40149a in __tmainCRTStartup (h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:335); saved rip 0x4014e8
[debug] called by frame at 0x23ff60
[debug] source language c.
[debug] Arglist at 0x23fe58, args:
[debug] Locals at 0x23fe58, Previous frame's sp is 0x23ff30
[debug] Saved registers:
[debug]  rbx at 0x23fef8, rsi at 0x23ff00, rdi at 0x23ff08, rbp at 0x23ff10, r12 at 0x23ff18, r13 at 0x23ff20, rip at 0x23ff28, xmm15 at 0x23ff28
[debug]>>>>>>cb_gdb:

Cannot open file: h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c
At h:/crossdev/src/mingw-w64-v3-svn/mingw-w64-crt/crt/crtexe.c:335

[debug]> next
[debug][Inferior 1 (process 5940) exited normally]
[debug]>>>>>>cb_gdb:

[Inferior 1 (process 5940) exited normally]

[debug]> quit

Debugger finished with status 0

Title: Re: gdb.exe - there is no disk
Post by: oBFusCATed on July 29, 2014, 11:53:28 pm
Hm, I'm not sure there is a problem here...
You're trying to step into the mingw's startup code and you don't have the sources for it, so some errors are printed.
Title: Re: gdb.exe - there is no disk
Post by: Giovanni62 on July 30, 2014, 12:47:07 am
What should I do to make sure that there are no error messages?
Title: Re: gdb.exe - there is no disk
Post by: oBFusCATed on July 30, 2014, 09:27:15 am
Use Debug->Run instead of Debug->Next line, when you reach the end of the main function.
Title: Re: gdb.exe - there is no disk
Post by: Giovanni62 on July 30, 2014, 11:15:05 am
Thank you  :)
Title: Re: [SOLVED] gdb.exe - there is no disk
Post by: BlueHazzard on July 30, 2014, 06:20:01 pm
Why is this marked as solved?