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.

Bug 222080 - C++ Debug not stoping but running, also it debugs properly on sample aplications
Summary: C++ Debug not stoping but running, also it debugs properly on sample aplications
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.2.1
Hardware: PC Windows 8 x64
: P1 normal (vote)
Assignee: henk89
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-14 00:27 UTC by Noman
Modified: 2012-11-16 09:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Noman 2012-11-14 00:27:33 UTC
Regarding this post:
http://forums.netbeans.org/viewtopic.php?t=52188

NB 7.21, MinGw 4.7.2, Msys 1.0.10

Debug doesnt even stops on fist main lines but it's working properly on sample projects.

Tryed diferent locations for the project, even simple ones as c:/Test/ProjectFolder but still not working, breakpoints seem to disappear for a second at the time of the debug run starts.

Would be glad to help and give any info you may need

Noman

This is the log of my debug:

This log is saved to: C:\Users\Leo\AppData\Local\Temp\gdb-cmds4420966244625471609.log

NB build: 201210100934

=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.5\n"
~"Copyright (C) 2012 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"i686-pc-mingw32\".\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
&"C:\\\\Users\\\\Leo/.gdbinit: No such file or directory.\n"
(gdb)
2-list-features
3-gdb-set print repeat 0
4-gdb-set backtrace limit 1024
5-gdb-set print elements 0
6-enable-pretty-printing
7set new-console
8-file-symbol-file "C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/BolaDeDrac.exe"
9-file-exec-and-symbols  "C:\\Users\\Leo\\Dropbox\\Clase\\EDA\\Joc\\BolaDeDrac\\BolaDeDrac.exe"
2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","data-read-memory-bytes","breakpoint-notifications","ada-task-info"]
(gdb)
3^done
(gdb)
4^done
(gdb)
5^done
(gdb)
6^done
(gdb)
&"set new-console\n"
7^done
(gdb)
8^done
(gdb)
9^done
10-file-list-exec-source-file
11cd C:\Users\Leo\Dropbox\Clase\EDA\Joc\BolaDeDrac
12-exec-arguments Demo Demo Demo Demo -i demo.cnf -o Vieweredafiles\game.bdd
13-break-insert -f "C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:92"
14-break-insert -f "C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:88"
15-break-insert -f "C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:99"
16-break-insert -f "C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/BolaDeDrac.cc:31"
17-break-insert -f "C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/BolaDeDrac.cc:29"
18-break-insert -f "C:/Test/BolaDeDrac/BolaDeDrac.cc:29"
19-break-insert -f "C:/Test/BolaDeDrac/BolaDeDrac.cc:31"
20-break-insert -f "C:/Users/Leo/Dropbox/Clase/EDA/Joc/Sample_test_Welcome_1/welcome.cc:35"
(gdb)
10^error,msg="No symbol table is loaded.  Use the \"file\" command."
(gdb)
&"cd C:\\Users\\Leo\\Dropbox\\Clase\\EDA\\Joc\\BolaDeDrac\n"
~"Working directory C:\\Users\\Leo\\Dropbox\\Clase\\EDA\\Joc\\BolaDeDrac.\n"
11^done
(gdb)
12^done
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
13^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:92",times="0",original-location="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:92"}
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
14^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:88",times="0",original-location="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:88"}
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
15^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:99",times="0",original-location="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/Demo.cc:99"}
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
16^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/BolaDeDrac.cc:31",times="0",original-location="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/BolaDeDrac.cc:31"}
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
17^done,bkpt={number="5",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/BolaDeDrac.cc:29",times="0",original-location="C:/Users/Leo/Dropbox/Clase/EDA/Joc/BolaDeDrac/BolaDeDrac.cc:29"}
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
18^done,bkpt={number="6",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Test/BolaDeDrac/BolaDeDrac.cc:29",times="0",original-location="C:/Test/BolaDeDrac/BolaDeDrac.cc:29"}
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
19^done,bkpt={number="7",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Test/BolaDeDrac/BolaDeDrac.cc:31",times="0",original-location="C:/Test/BolaDeDrac/BolaDeDrac.cc:31"}
(gdb)
&"No symbol table is loaded.  Use the \"file\" command.\n"
20^done,bkpt={number="8",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="C:/Users/Leo/Dropbox/Clase/EDA/Joc/Sample_test_Welcome_1/welcome.cc:35",times="0",original-location="C:/Users/Leo/Dropbox/Clase/EDA/Joc/Sample_test_Welcome_1/welcome.cc:35"}
21-break-insert -t _start
(gdb)
21^error,msg="Function \"_start\" not defined."
22-break-insert -t main
(gdb)
22^done,bkpt={number="9",type="breakpoint",disp="del",enabled="y",addr="0x0040e5a9",at="<main+17>",times="0",original-location="main"}
23-exec-run
(gdb)
=thread-group-started,id="i1",pid="4544"
=thread-created,id="1",group-id="i1"
~"[New Thread 4544.0x8c8]\n"
23^running
*running,thread-id="all"
(gdb)
=library-loaded,id="C:\\Windows\\SysWOW64\\kernel32.dll",target-name="C:\\Windows\\SysWOW64\\kernel32.dll",host-name="C:\\Windows\\SysWOW64\\kernel32.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\SysWOW64\\KernelBase.dll",target-name="C:\\Windows\\SysWOW64\\KernelBase.dll",host-name="C:\\Windows\\SysWOW64\\KernelBase.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="C:\\Windows\\SysWOW64\\msvcrt.dll",target-name="C:\\Windows\\SysWOW64\\msvcrt.dll",host-name="C:\\Windows\\SysWOW64\\msvcrt.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="c:\\MinGW\\bin\\libgcc_s_dw2-1.dll",target-name="c:\\MinGW\\bin\\libgcc_s_dw2-1.dll",host-name="c:\\MinGW\\bin\\libgcc_s_dw2-1.dll",symbols-loaded="0",thread-group="i1"
=library-loaded,id="c:\\MinGW\\bin\\libstdc++-6.dll",target-name="c:\\MinGW\\bin\\libstdc++-6.dll",host-name="c:\\MinGW\\bin\\libstdc++-6.dll",symbols-loaded="0",thread-group="i1"
=breakpoint-modified,bkpt={number="9",type="breakpoint",disp="del",enabled="y",addr="0x0040e5a9",at="<main+17>",times="1",original-location="main"}
*stopped,reason="breakpoint-hit",disp="del",bkptno="9",frame={addr="0x0040e5a9",func="main",args=[]},thread-id="1",stopped-threads="all"
24-exec-continue
=breakpoint-deleted,id="9"
(gdb)
24^running
No answer for: 23-exec-run

*running,thread-id="all"
(gdb)
=thread-exited,id="1",group-id="i1"
=thread-group-exited,id="i1",exit-code="0"
*stopped,reason="exited-normally"
25-stack-list-frames
(gdb)
25^error,msg="No registers."
No answer for: 24-exec-continue

(gdb)
Comment 1 Noman 2012-11-16 00:12:18 UTC
Stupid me forgot to add -g on the make.

Thanks for your time anyways

Noman