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 143098 - Line BP can not be set via New BP dialog or toggle action
Summary: Line BP can not be set via New BP dialog or toggle action
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: _ gordonp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 18:19 UTC by Alexander Pepin
Modified: 2009-06-25 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2008-08-06 18:19:01 UTC
This is a regression
Steps to reproduce:
- create any sample
- open a source file in the editor
- set cursor on any executable line in the code
- call Debug->New Breakpoint...
- select Line as a BP type
- press OK
Result: Information window appears with a message "The specified file does not exist".
Comment 1 _ gordonp 2008-08-06 22:37:59 UTC
Remember I mentioned I'd found a serious gdb issue at todays iteam? At the time I
found it I was checking why breakpoints weren't correctly being set. I think this
is the same problem as the one I was originally tracking down. In my case, I was
having toggle breakpoints fail.

A brief analysis: gdb works best if I set a breakpoint with a file name (as opposed
to a path). So "-break-insert args.c:9" works but "-break-insert C:\path\to\args\args.c:9"
doesn't. In NB 6.1, gdb used the short name. In current builds, its using a full path
name.
Comment 2 _ gordonp 2008-08-07 01:04:51 UTC
Fixed in http://hg.netbeans.org/main?cmd=changeset;node=9e5aa41fbd2d

Besides fixing the Line BP panel, I also fixed a related toggle breakpoint bug.
Comment 3 Alexander Pepin 2008-08-07 14:08:39 UTC
verified in NB dev build #3297
Please review the fix to satisfy NetBeans 6.5 Code Freeze Process.
Comment 4 Quality Engineering 2008-08-07 16:37:08 UTC
Integrated into 'main-golden', available in build *200808071401* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/9e5aa41fbd2d
User: Gordon Prieur <gordonp@netbeans.org>
Log: Fixed several gdb problems:
    IZ #143098  Broken breakpoints (in several places)
    no iz: Missed getting PID on Windows with Cygwin and gdb 6.8
Comment 5 Egor Ushakov 2008-08-08 10:58:29 UTC
Provided fix reviewed and valid
Comment 6 Sergey Grinev 2008-08-08 13:42:27 UTC
integrated into release65_beta branch:
http://hg.netbeans.org/release65_beta/rev/542e2fd0e2c3
Comment 7 Alexander Pepin 2008-08-08 19:04:04 UTC
verified in Netbeans-6.5Beta build 2008080816119