This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Hi, I am testing the debugging C++ in Mingw64 for Windows (nothing of cygwin) and don't works, if i set a breakpoint before application start it works, but if i set a breakpoint in a bucle(While,For) after application start and application is touring a while, the breakpoint don't works and get a broken breakpoint. Thanks and sorry for my bad english, Grettins.
please specify NB version, gdb version and attach gdblog (http://wiki.netbeans.org/GdbLog).
also specify how you compile your application, is it 64 bits?
The problem is that our "pausing" utility on Windows does not work with 64 bits executables. For some reason DebugBreakProcess fails. Need to investigate.
Created attachment 99200 [details] MinGW64 Log Broken Breakpoints Ho aigan, My versions is: C Compiler: gcc.exe (GCC) 4.4.4.20100429 (release) [svn/rev.158895 - mingw-w64/oz] C++ Compiler: g++.exe (GCC) 4.4.4.20100429 (release) [svn/rev.158895 - mingw-w64/oz] Fortran Compiler: GNU Fortran (GCC) 4.4.4.20100429 (release) [svn/rev.158895 - mingw-w64/oz] Assembler: GNU assembler (GNU Binutils) 2.20.51.20100505 Make Tool: GNU MAKE 3.81 Debugger: GNU gdb (GDB) 7.1.50.20100505-cvs i attach the log in mingw64 failed.
Thanks, problem is confirmed. Pause (and breakpoint setting on the fly) does not work for with MinGW64.
I'm not sure the problem is in our code. We just use win API.
Anyway it's not P2 as breakpoints can be set if the application is paused.
I've created new topic at the MinGW64 help forum: http://sourceforge.net/projects/mingw-w64/forums/forum/723798/topic/3714618
we need to use 64 bit helper for 64 bits applications. 2 SiGeM: can you please try this workaround to check that it will work for you: - download this source: http://hg.netbeans.org/cnd-main/file/tip/cnd.debugger.gdb/windows/GdbKillProc.c - compile it on your machine with <MinGW64>/bin/gcc.exe - replace NB/cnd/bin/GdbKillProc.exe with this file (do not forget to backup original file) - try to use pause in NB after that
I am try and recive this message: "The GDB Debugger has exited unexpectedly" And don't start the application. ¿Any idea?
this executable only affects pause, can you revert the GdbKillProc.exe file and try again? Maybe you've changes something in projects settings?
Hi again, I rebuild the exe, and start with ADMIN the netbeans and don't works :(, 1 error in gdb.log ("error,msg="Function \"WinMain\" not defined."). C++ code: int main(int argc,char* argv[]) { int i= 0; int d= 0; while (true) { d = 1234; d *= 2; d++; d--; } return 0; } start, and set breakpoint in d= 1234;. don't works.
Created attachment 99394 [details] Modified pause utility Please replace your NB/cnd/bin/GdbKillProc.exe with this file and try to pause your 64 bits application once again and attach here GdbLog as before. Thanks!
Created attachment 99395 [details] gdbLog With x64 GdbKillProc Sorry but don't work i attach the log.
¡YES!! WORKS THANKS!! The really problem is my NetBeans using the "C:\Users\UserPC\.netbeans\dev\bin" path for the .exe and not the ProgramFiles. i dont understand i have 2 path with installation. Sorry and thanks. PD: I love you ;) finnaly i can program in x64 ^^.
Glad to hear that :)
so is the problem fixed without a new GdbKillProc.exe?