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: | MinGW + Msys: debugger ignores line breakpoints | ||
---|---|---|---|
Product: | cnd | Reporter: | soldatov <soldatov> |
Component: | Debugger | Assignee: | Egor Ushakov <gorrus> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | apepin, mmirilovic, v3dsoft |
Priority: | P2 | ||
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
gdb log
gdb log (NB7.0.1 works nicely) gdb log (NB7.1 doesn't work) |
P.S. Debugger works nicely if project is created in C:/Document and Settings and fails if project is created in C:/tmp Created attachment 113496 [details]
gdb log (NB7.0.1 works nicely)
Created attachment 113497 [details]
gdb log (NB7.1 doesn't work)
35a36,37 > 13-break-insert -f "/C/tmp/Quote_1/quote.cc:119" > 14-break-insert -t _start 47,52c49,50 < 13-break-insert -f "C:/tmp/Quote_1/quote.cc:119" < 1 < 13^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x00402540",func="main",file="quote.cc",fullname="C:\\tmp\\Quote_1/quote.cc",line="119",times="0"} < (gdb) < &"\n" < 1^done --- > &"No source file named /C/tmp/Quote_1/quote.cc in loaded symbols.\n" > 13^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="<PENDING>",pending="/C/tmp/Quote_1/quote.cc:119",times="0"} 54,55d51 diff gdb_nb701.txt gdb_nb71.txt < 14-break-insert -t _start < No command for record 1^done 65c61 < ~"[New thread 828.0x8dc]\n" --- > ~"[New thread 328.0xc38]\n" 70c66 < ~"* 1 thread 828.0x8dc main (argc=1, argv=0x3e2c10) at quote.cc:118\n" --- > ~"* 1 thread 328.0xc38 main (argc=1, argv=0x3e2c10) at quote.cc:118\n" 76,83d71 < 18*stopped,reason="breakpoint-hit",bkptno="1",thread-id="1",frame={addr="0x00402540",func="main",args=[{name="argc",value="1"},{name="argv",value="0x3e2c10"}],file="quote.cc",fullname="C:\\tmp\\Quote_1/quote.cc",line="119"} < (gdb) < 19-stack-list-frames < 19^done,stack=[frame={level="0",addr="0x00402540",func="main",file="quote.cc",fullname="C:\\tmp\\Quote_1/quote.cc",line="119"}] < (gdb) < 20-stack-list-arguments 1 < 20^done,stack-args=[frame={level="0",args=[{name="argc",value="1"},{name="argv",value="0x3e2c10"}]}] < (gdb) fixed in trunk: http://hg.netbeans.org/cnd-main/rev/9d81aad71afb Ok. I verified fix on 3 machines (4 different configurations). Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/9d81aad71afb User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #205418 (MinGW + Msys: debugger ignores line breakpoints) Fix is reviewed. I consider it to be correct, Some cosmetic comments: commented out code is better to be removed and "sometimes" in comment have to be removed as well as soon as mingw's gdb understand only C:/..../ path formats comments corrected: http://hg.netbeans.org/cnd-main/rev/6683913fe889 integrated into release71 with: http://hg.netbeans.org/releases/rev/3dcf73ef0d34 Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/3dcf73ef0d34 User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #205418(MinGW + Msys: debugger ignores line breakpoints) *** Bug 205708 has been marked as a duplicate of this bug. *** Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/6683913fe889 User: Egor Ushakov <gorrus@netbeans.org> Log: fixed comments for #205418(MinGW + Msys: debugger ignores line breakpoints) Verified in NetBeans IDE 7.1 RC2 (Build 201111302200) |
Created attachment 113409 [details] gdb log MinGW + Msys Scenario: - Create Quote project - Set line breakpoint at 121th line - Push Debug Main Project button ===> debugger ignores line breakpoint