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.
The issue occurs on Mac x86 with gdb 6.3.5. I was not able to build and install neither gdb 6.5 nor gdb 6.6 Steps to reproduce: - create Quote sample project - build the project - create a new breakpoint for "fetchCustomersList" function - do step into project - do step over twice to perform the function Result: Debugger does not stop at function breakpoint.
Created attachment 49257 [details] gdb log
I was also unable to do this from a gdb command line. Can you? This may be a gdb or g++ problem. If you look at the gdb log, it just doesn't recognize fetchCustomersList as a function.
This happens with any function. I intentionally did not use "main".
A function bp on main is the only one I got to work. Did you have better results from a command line?
I'll close this as INVALID if we can't get this to work from the gdb command line on MacOSx. So far I haven't been able to... I'll check to see if I file a bug with gdb.org or with Apple (they have their own non-standard gdb).
Now it also works on Windows. Debugger always stops at function breakpoint at function "main" and does not stop at "fetchCustomersList" unless it was created within current debug session (so it stops at "fetchCustomersList" only once). Steps to reproduce: - create Quote sample project - set a function breakpoint for "main" - set a function breakpoint for "fetchCustomersList" - start debugger - when debugger stops at main to step over twice to go through fetchCustomersList invocation Result: Debugger does not stop at "fetchCustomersList" function.
Created attachment 49299 [details] windows gdb log
The bug is reproducible on all platforms. Only stop at main works fine. It stops at other functions only if a breakpoint was created within the current debug session.
The Mac problem is a duplicate of 118155. When quote was recompiled with different options, the breakpoint in fetchCustomersList worked as expected. Closing as duplicate. I also fixed a Mac breakpoint bug where a breakpoint on the 1st line of code was ignored. I also fixed a breakpoint bug where a disable breakpoint on the 1st line of code stopped even though it was disabled. I've never been able to duplicate this problem on any other platform, except when I've typed "fetchCustomerList" instead of "fetchCustomersList". I've done that often enough (at least 5 times:-) to wonder if you could have done something like that. Anyway, there was definitely a Mac problem and its gone. If you get similar behavior on other platforms its for a different reason and I'd prefer a different bug filed. *** This issue has been marked as a duplicate of 118155 ***
Indeed now it works on Linux and Windows. I will mark it as verified as soon as a new build is available on Mac.
Works on all platforms. Verified in nightly build 20071015