News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

[SOLVED] gdb.exe - there is no disk

Started by Giovanni62, July 27, 2014, 11:21:22 AM

Previous topic - Next topic

Giovanni62

http://forums.next.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

Giovanni62

Is there someone who codeblocks 13.12, installed on windows 8.1, it works without any problems?

MortenMacFly

Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

BlueHazzard

Quote from: Giovanni62 on July 27, 2014, 11:21:22 AM
"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?

Giovanni62

#4
I have installed TDM64 Bundle 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

BlueHazzard

Have you tried to run the debugger from comand line?

oBFusCATed

Can you post the full log from debugger (you have to enable it in the settings)?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Giovanni62


oBFusCATed

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).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Giovanni62

#9
This is full log


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


oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Giovanni62

What should I do to make sure that there are no error messages?

oBFusCATed

Use Debug->Run instead of Debug->Next line, when you reach the end of the main function.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Giovanni62


BlueHazzard