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.
Created attachment 110441 [details] Screenshot showing the error message I just installed NetBeans IDE 7.01 and tried a very simple C++ program: #include <stdio.h> #include <cstdlib> using namespace std; int main(int argc, char** argv) { printf("Hello World C++!\n"); printf("bye!\n"); // while (1) // for (int i=0; i<100;i++) // i = i + 1 -1; return 0; } Set a breakpoint in the source file and started the debugger. The debugger did not stop at the breakpoint. If I allowed the infinite loop to run, I would see an error message at the breakpoint by pointing at the breakpoint marker: mi_cmd_break_insert: Unknown option ``f" Please see the attachment. If I used gdb in a terminal window, everything worked fine; the breakpoint did work.
I think You uses old gdb. 6.3 or same.
could you, please, provide info about your gdb version
Thanks for looking into the issue. When I type gdb on the terminal window, here is what is shows: GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.8".
We are using MI to communicate with gdb and we need version > 6.3 to work correctly. Have you seen warning from IDE that your version of gdb is old and you use it on own risk :-)? Please, upgrade gdb to more recent one.
You may also run the IDE with -J-Dgdb.breakpoints.pending.disabled=true. Anyway it is strange that the IDE sends -f to gdb 5.2.1... Could you attach the gdb log (window/debug/debugger console)?
I'm still trying to set up a new version of gdb (7.3). I'm having trouble in building it first, however. If there is a binary readily available for Solaris-sparc, please let me know. Started the IDE with "-J-Dgdb.breakpoints.pending.disabled=true" and debugged the program. The program did not finish, nor it stopped at the breakpoint. Pressed the Stop button to terminate. Really don't know what's going on. How do I create a gdb log? There seems to be a "set logging on" command, but it is not available on version 5.2.1.
for gdb binary try http://www.opencsw.org/ gdb log is just a text from debugger console view after you start the debugger (window/debugging/debugger console)
(asg1-usca-04)csh371 gdb GNU gdb 5.2.1 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.8".
Now I've built gdb successfully. But when I ran it, it gave this error message: Interpreter `console' unrecognized What's the problem here?
please check if you have anything in your ~/.gdbrc and try to remove it
I don't have such file in my home folder.
you may try this: http://cygwin.com/ml/gdb/2009-11/msg00183.html
I had looked at that before. It does not seem to apply in my case. I didn't have the "--disable-tui" option when configuring gdb. The log file shows that.
does gdb work from the console? please try to start like this: gdb --interpreter mi /bin/ls and then input "run"
After having built gdb successfully, I've been trying to get it to run on a terminal window. It still gives the error with the --interpreter option: (asg1-usca-04)csh396 ~/bin/gdb --interpreter mi /bin/ls Interpreter `mi' unrecognized I installed the newly built gdb (v7.3) in my own bin folder. Starting the system installed gdb (v5.2.1) with the --interpreter option works fine. Running the new gdb with --version gives the following: (asg1-usca-04)csh399 ~/bin/gdb --version GNU gdb (GDB) 7.3 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "sparc-sun-solaris2.10". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Not sure if this contains any useful information for trouble-shooting this problem.