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 176780 - Breakpoint is marked as "broken"
Summary: Breakpoint is marked as "broken"
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-13 05:39 UTC by soldatov
Modified: 2009-12-03 05:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gdb log (4.51 KB, application/octet-stream)
2009-11-13 05:41 UTC, soldatov
Details
other gdb log file (6.03 KB, application/octet-stream)
2009-11-13 06:04 UTC, soldatov
Details
new gdb log (5.52 KB, text/plain)
2009-11-26 09:23 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2009-11-13 05:39:51 UTC
MinGW, gdb 6.6

Scenario:
- Create Arguments project
- Open args.c file and set line breakpoint on 37th line (printf("Arguments:\n");)
- Launch debugger
==> Debugger stopped on 37th line, but breakpoint is marked as "broken"
Comment 1 soldatov 2009-11-13 05:41:57 UTC
Created attachment 90986 [details]
gdb log
Comment 2 Egor Ushakov 2009-11-13 05:49:33 UTC
please attach gdb log
Comment 3 soldatov 2009-11-13 06:04:49 UTC
Created attachment 90992 [details]
other gdb log file
Comment 4 Alexander Pepin 2009-11-24 08:37:40 UTC
It happens also with cygwin if the project is created in localized directory.
Comment 5 Egor Ushakov 2009-11-26 06:03:02 UTC
can happen on any platform, this is a timing issue, hard to reproduce
Comment 6 Egor Ushakov 2009-11-26 06:07:54 UTC
issues with localized files are addressed in the bug 177588,
issue with breakpoints sometimes shown as broken is fixed in (cnd-main):
http://hg.netbeans.org/cnd-main/rev/ca47274fa0aa
Comment 7 Egor Ushakov 2009-11-26 06:26:21 UTC
correction:
hard to reproduce on some platform, easy on others
Comment 8 Vladimir Voskresensky 2009-11-26 08:28:59 UTC
nice fix, thanks
Comment 9 Alexander Pepin 2009-11-26 09:23:36 UTC
Created attachment 91735 [details]
new gdb log

The fix works but it changes current behavior if a local project was created in the localized directory without a space symbol in the directory name. With the fix debugger switches to unknown state as soon as BP is reached. Please look at the attached gdb log.
Comment 10 Alexander Pepin 2009-11-26 10:14:27 UTC
Sorry for misleading, the behavior is the same as it is in current builds. The different behavior is in remote projects (see bug#177588) 

The fix should be integrated into release68 as soon as practical but I do not consider the bug is a showstopper for RC1.
Comment 11 Alexander Pepin 2009-11-27 04:09:19 UTC
It's a showstopper for FCS.
Comment 12 Egor Ushakov 2009-11-27 04:56:15 UTC
integrated into releas68:
http://hg.netbeans.org/release68/rev/e91c16e8df16
Comment 13 Quality Engineering 2009-11-27 06:14:55 UTC
Integrated into 'main-golden', will be available in build *200911271400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/ca47274fa0aa
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed IZ#176780 (Breakpoint is marked as "broken")
Comment 14 Alexander Pepin 2009-12-03 05:00:26 UTC
verified in RC2 build 2009-12-02_22-00-34