C++ debugger not working

  • From: "Noman" < >
  • To:
  • Subject: C++ debugger not working
  • Date: Tue, 13 Nov 2012 13:53:53 -0500


Birdasaur wrote:
> This same thing happened to me when I upgraded from 7.0 to 7.1.2.  The 
> following workaround works for me on a Windows 7 64bit machine:
> 
> Edit your \etc\netbeans.conf file so that the variable 
> 'netbeans_default_options' includes the below option...
> 
> 
> Code:
> -J-Dgdb.breakpoints.shortpaths=true
> 
> 
> 
> You can test it easily by browsing to the \bin of your installation and 
> starting netbeans from the command line with this option...
> 
> 
> Code:
> netbeans.exe -J-Dgdb.breakpoints.shortpaths=true
> 
> 
> 
> 
> There are some bug tickets out there that have this information if you want 
> the backstory, try searching for the flag.   I wasted so much time (and 
> U.S. tax dollars) trying to figure out this problem that I'd hate to see 
> you suffer as well.


I tryed that before posting here among other stuff.

Regarding the log:

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

=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="3484"
=thread-created,id="1",group-id="i1"
~"[New Thread 3484.0x11cc]\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) 
NB build: 201210100934





As you can see on the log, i tryed with a sample project but it worked out 
without problems, also you may see i tested this on diferent routes, one of 
them, not sure if showing, was something like c:/Test/ProjectFolder

Anyways, looks like here is the problem right?
&"C:\\\\Users\\\\Leo/.gdbinit: No such file or directory.\n"

Ty for the answer, i really apreciate people helping me to work out with this.

Noman






C++ debugger not working

Noman 11/13/2012

Re: C++ debugger not working

Nikolay Koldunov 11/13/2012

C++ debugger not working

Birdasaur 11/13/2012

C++ debugger not working

Noman 11/13/2012

Re: C++ debugger not working

Leonid Lenyashin 11/13/2012

C++ debugger not working

Noman 11/13/2012

Re: C++ debugger not working

Leonid Lenyashin 11/13/2012

C++ debugger not working

Noman 11/14/2012

C++ debugger not working

Noman 11/15/2012

Re: C++ debugger not working

Egor Ushakov 11/15/2012

C++ debugger not working

Noman 11/16/2012

Re: C++ debugger not working

Egor Ushakov 11/19/2012

Re: C++ debugger not working

Ivan Soleimanipour 11/19/2012

Project Features

About this Project

CND was started in November 2009, is owned by DimaZh, and has 183 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20160708.bf2ac18). © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close