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 174479 - Line BP do not work in MinGW
Summary: Line BP do not work in MinGW
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Egor Ushakov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2009-10-13 17:20 UTC by Alexander Pepin
Modified: 2011-01-21 12:01 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
gdb log (4.49 KB, text/plain)
2009-10-13 17:24 UTC, Alexander Pepin
Details
gdb log (4.85 KB, text/plain)
2009-12-24 07:23 UTC, Alexander Pepin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-10-13 17:21:00 UTC
Steps to reproduce:
- create local Welcome sample using MinGW
- set line BP at 'return' statement
- start debugger
Result: Debugger does not stop on BP.
Comment 1 Alexander Pepin 2009-10-13 17:24:54 UTC
Created attachment 89385 [details]
gdb log
Comment 2 Egor Ushakov 2009-10-13 18:08:37 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/453fae5cbf5e
Comment 3 Quality Engineering 2009-10-14 11:06:16 UTC
Integrated into 'main-golden', will be available in build *200910140201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/453fae5cbf5e
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed IZ#174479 (Line BP do not work in MinGW)
Comment 4 Alexander Pepin 2009-12-24 07:22:18 UTC
The bug is still reproducible if the source file is placed in non-project directory (after add existing item).
Comment 5 Alexander Pepin 2009-12-24 07:23:56 UTC
Created attachment 92904 [details]
gdb log
Comment 6 Egor Ushakov 2009-12-24 07:34:55 UTC
the problem is that MinGW stores relative paths to files like:
C:/Users/egor/Documents/NetBeansProjects/Welcome_25/../Welcome_24/welcome.h
and
setting a breakpoint in an absolute path:
C:/Users/egor/Documents/NetBeansProjects/Welcome_24/welcome.h
does not work.
Comment 7 Egor Ushakov 2010-03-15 14:05:46 UTC
there is a workaround:
when adding files to project set "store path as absolute" (not relative)
Comment 8 Egor Ushakov 2010-03-15 14:12:47 UTC
there is a workaround:
when adding files to a projects set "store path as absolute" (not relative)
Comment 9 Egor Ushakov 2010-03-15 14:14:11 UTC
there is a workaround:
when adding files to project set "store path as absolute" (not relative)
Comment 10 Alexander Pepin 2010-03-16 13:15:31 UTC
The workaround works. There is an issue with long paths then but the main bug can be downgraded.
Comment 11 Egor Ushakov 2011-01-21 12:01:35 UTC
this looks like a bug in gdb implementation, now there is one more workaround:
use -J-Dgdb.breakpoints.shortpaths=true
to send short paths to gdb.