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 116354 - Function breakpoint does not work
Summary: Function breakpoint does not work
Status: CLOSED DUPLICATE of bug 118155
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-21 17:05 UTC by Alexander Pepin
Modified: 2009-06-25 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gdb log (39.01 KB, application/octet-stream)
2007-09-21 17:10 UTC, Alexander Pepin
Details
windows gdb log (35.79 KB, application/octet-stream)
2007-09-22 17:31 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2007-09-21 17:09:30 UTC
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.
Comment 1 Alexander Pepin 2007-09-21 17:10:10 UTC
Created attachment 49257 [details]
gdb log
Comment 2 _ gordonp 2007-09-21 18:26:49 UTC
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.
Comment 3 Alexander Pepin 2007-09-21 18:42:54 UTC
This happens with any function. I intentionally did not use "main".
Comment 4 _ gordonp 2007-09-21 19:01:37 UTC
A function bp on main is the only one I got to work.

Did you have better results from a command line?
Comment 5 _ gordonp 2007-09-21 19:56:06 UTC
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).
Comment 6 Alexander Pepin 2007-09-22 17:30:32 UTC
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.
 
Comment 7 Alexander Pepin 2007-09-22 17:31:37 UTC
Created attachment 49299 [details]
windows gdb log
Comment 8 Alexander Pepin 2007-09-24 13:02:45 UTC
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.
Comment 9 _ gordonp 2007-10-12 03:23:43 UTC
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 ***
Comment 10 Alexander Pepin 2007-10-12 11:18:34 UTC
Indeed now it works on Linux and Windows. I will mark it as verified as soon as a new build is available on Mac.
Comment 11 Alexander Pepin 2007-10-16 14:54:26 UTC
Works on all platforms.
Verified in nightly build 20071015