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 192861 - Pause does not work
Summary: Pause does not work
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Egor Ushakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-03 18:38 UTC by Alexander Pepin
Modified: 2010-12-07 06:10 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 2010-12-03 18:38:38 UTC
It's a regression.
Steps to reproduce:
- create Welcome project
- add the following lines to the code:
    int x = 5;
    int y = 1;
    while(x--) while(y++) {} /* loop of fixed time */
- start debugging
- press Pause
Result: Nothing happens.
Comment 1 Egor Ushakov 2010-12-06 15:33:38 UTC
please attach gdb log
Comment 2 Alexander Pepin 2010-12-06 16:14:31 UTC
~"GNU gdb 6.8-debian\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 \"i486-linux-gnu\".\n"
&"/home/ap153252/.gdbinit: No such file or directory.\n"
(gdb) 
1-gdb-set print repeat 0
2-gdb-set backtrace limit 1024
3-file-exec-and-symbols  "/home/ap153252/NetBeansProjects/Welcome_16/dist/Debug/GNU-Linux-x86/welcome_16"
1^done
(gdb) 
2^done
(gdb) 
3^done
(gdb) 
4-file-list-exec-source-file
5cd /home/ap153252/NetBeansProjects/Welcome_16
6-exec-arguments "arg 1" "arg 2" "arg 3" "arg 4"
4^done,line="26",file="welcome.cc",fullname="/home/ap153252/NetBeansProjects/Welcome_16/welcome.cc",macro-info="0"
(gdb) 
7-break-insert welcome.cc:80
1
8-break-insert -t main
9-exec-run
10info proc
&"cd /home/ap153252/NetBeansProjects/Welcome_16\n"
~"Working directory /home/ap153252/NetBeansProjects/Welcome_16.\n"
5^done
(gdb) 
6^done
(gdb) 
&"No line 80 in file \"welcome.cc\".\n"
7^error,msg="No line 80 in file \"welcome.cc\"."
(gdb) 
&"\n"
1^done
(gdb) 
8^done,bkpt={number="1",type="breakpoint",disp="del",enabled="y",addr="0x08048765",func="main",file="welcome.cc",fullname="/home/ap153252/NetBeansProjects/Welcome_16/welcome.cc",line="35",times="0"}
(gdb) 
9^running
(gdb) 
No command for record 1^done
9*stopped,thread-id="0",frame={addr="0x08048765",func="main",args=[{name="argc",value="5"},{name="argv",value="0xbfb07e14"}],file="welcome.cc",fullname="/home/ap153252/NetBeansProjects/Welcome_16/welcome.cc",line="35"}
(gdb) 
&"info proc\n"
~"process 8374\n"
~"cmdline = '/home/ap153252/NetBeansProjects/Welcome_16/dist/Debug/GNU-Linux-x86/welcome_16'\n"
~"cwd = '/home/ap153252/NetBeansProjects/Welcome_16'\n"
~"exe = '/home/ap153252/NetBeansProjects/Welcome_16/dist/Debug/GNU-Linux-x86/welcome_16'\n"
10^done
(gdb) 
11-stack-list-frames
11^done,stack=[frame={level="0",addr="0x08048765",func="main",file="welcome.cc",fullname="/home/ap153252/NetBeansProjects/Welcome_16/welcome.cc",line="35"}]
(gdb) 
12-stack-list-arguments 1
12^done,stack-args=[frame={level="0",args=[{name="argc",value="5"},{name="argv",value="0xbfb07e14"}]}]
(gdb) 
13-exec-continue
13^running
(gdb) 
13*stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",thread-id="0",frame={addr="0x080487a0",func="main",args=[{name="argc",value="5"},{name="argv",value="0xbfb07e14"}],file="welcome.cc",fullname="/home/ap153252/NetBeansProjects/Welcome_16/welcome.cc",line="38"}
(gdb)
Comment 3 Egor Ushakov 2010-12-06 18:42:14 UTC
fixed in:
http://hg.netbeans.org/cnd-main/rev/febf221b0c4c
Comment 4 Quality Engineering 2010-12-07 06:10:11 UTC
Integrated into 'main-golden', will be available in build *201012070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/febf221b0c4c
User: Egor Ushakov <gorrus@netbeans.org>
Log: fixed #192861 (Pause does not work)