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.
Summary: | Breakpoints do not work in WinAPI application | ||
---|---|---|---|
Product: | cnd | Reporter: | Alexander Pepin <apepin> |
Component: | Debugger | Assignee: | _ gordonp <gordonp> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | ttran |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
sample WinAPI application
gdb log Patch against release60 version |
Description
Alexander Pepin
2007-10-29 14:28:50 UTC
Created attachment 51894 [details]
sample WinAPI application
Created attachment 51899 [details]
gdb log
Breakpoints work in Eclipse and in command line GDB. Since breakpoints in shared libraries can't be set until the shared library is loaded, the standard way of doing this is to set an invisible and temporary breakpoint at main. When gdb stops at this breakpoint, it creates the "real" breakpoints. In a WinAPI app, there is no "main" function so the breakpoints don't get set. I added a check for Windows and create an invisible/temp breakpoint at WinMain. This successfully completes the breakpoint validation phase for all apps. verified in trunk build 20071107 This is a requested NB 6.0 high resistance fix. Created attachment 52682 [details]
Patch against release60 version
Code changes reviewed by Thomas Preisler (thp). Change committed into release60 branch. verified in RC1 build (20071109) |