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 194264 - Line breakpoints doesn't work in default directory (C:/Documents and Settings)
Summary: Line breakpoints doesn't work in default directory (C:/Documents and Settings)
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-01-12 13:27 UTC by soldatov
Modified: 2011-01-14 06:07 UTC (History)
1 user (show)

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 soldatov 2011-01-12 13:27:24 UTC
Line breakpoints doesn't work in default directory (C:/Document and Settings)

Scenario:
- Create Welcome
- Push Step Into
- Set line breakpoint in welcome.cc
==> breakpoint is marked as broken

~"GNU gdb 6.8\n"
~"Copyright (C) 2008 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\n"
~"This is free software: you are free to change and redistribute it.\n"
~"There is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\n"
~"and \"show warranty\" for details.\n"
~"This GDB was configured as \"i686-pc-mingw32\".\n"
&"C:\\\\Documents and Settings\\\\tester/.gdbinit: No such file or directory.\n"
(gdb) 
2-gdb-set print repeat 0
3-gdb-set backtrace limit 1024
4-file-exec-and-symbols  "C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3\\dist/Debug/MinGW-Windows/welcome_3"
2^done
(gdb) 
3^done
(gdb) 
4^done
(gdb) 
5-file-list-exec-source-file
5^done,line="24",file="welcome.cc",fullname="C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3/welcome.cc",macro-info="0"
(gdb) 
6cd C:\Documents and Settings\tester\My Documents\NetBeansProjects\Welcome_3
7-exec-arguments "arg 1" "arg 2" "arg 3" "arg 4"
8-break-insert -t main
9-exec-run
10info threads
&"cd C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3\n"
~"Working directory C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3.\n"
6^done
(gdb) 
7^done
(gdb) 
8^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x004013ba",func="main",file="welcome.cc",fullname="C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3/welcome.cc",line="33",times="0"}
(gdb) 
9^running
(gdb) 
~"Warning: Failed to open TTY /dev/tty0, error 0x3\n"
~"[New thread 1372.0x4c0]\n"
9*stopped,thread-id="1",frame={addr="0x004013ba",func="main",args=[{name="argc",value="5"},{name="argv",value="0x3e3e78"}],file="welcome.cc",fullname="C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3/welcome.cc",line="33"}
(gdb) 
&"info threads\n"
~"* 1 thread 1372.0x4c0  main (argc=5, argv=0x3e3e78) at welcome.cc:33\n"
10^done
(gdb) 
11-stack-list-frames
11^done,stack=[frame={level="0",addr="0x004013ba",func="main",file="welcome.cc",fullname="C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3/welcome.cc",line="33"}]
(gdb) 
12-stack-list-arguments 1
12^done,stack-args=[frame={level="0",args=[{name="argc",value="5"},{name="argv",value="0x3e3e78"}]}]
(gdb) 
13-exec-next
13^running
(gdb) 
13*stopped,reason="end-stepping-range",thread-id="1",frame={addr="0x004013bf",func="main",args=[{name="argc",value="5"},{name="argv",value="0x3e3e78"}],file="welcome.cc",fullname="C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3/welcome.cc",line="35"}
(gdb) 
14-stack-list-frames
14^done,stack=[frame={level="0",addr="0x004013bf",func="main",file="welcome.cc",fullname="C:\\Documents and Settings\\tester\\My Documents\\NetBeansProjects\\Welcome_3/welcome.cc",line="35"}]
(gdb) 
15-stack-list-arguments 1
15^done,stack-args=[frame={level="0",args=[{name="argc",value="5"},{name="argv",value="0x3e3e78"}]}]
(gdb) 
16-break-insert "C:/Documents and Settings/tester/My Documents/NetBeansProjects/Welcome_3/welcome.cc:38"
&"Function \"C\" not defined in loaded symbols.\n"
16^error,msg="Function \"C\" not defined in loaded symbols."
(gdb)
Comment 1 soldatov 2011-01-12 13:30:19 UTC
And a lot of NPE if I switch off this breakpoint in Breakpoints tab
Comment 2 Egor Ushakov 2011-01-13 17:07:54 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/3a67d1e013f2
now we send short paths if spaces detected
Comment 3 Quality Engineering 2011-01-14 06:07:19 UTC
Integrated into 'main-golden', will be available in build *201101140000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3a67d1e013f2
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #194264 (Line breakpoints doesn't work in default directory (C:/Documents and Settings) )