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.
Created attachment 117667 [details] screenshot Product Version: NetBeans IDE Dev (Build cnd-build-7025-on-20120330) Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09 System: Linux version 2.6.32-37-generic running on amd64; UTF-8; en_US (nb ---------------------------------------- -- add stlsupport (http://sourceware.org/gdb/wiki/STLSupport) -- create some code using vector, for example -- debug, and open variable view ==> unexprected variable with name __PRETTY_FUNCTION__ appears in the view. See screenshot.
Created attachment 117669 [details] screenshot
please attach gdb log
and gdb version
Created attachment 118320 [details] gdb log gdb version: GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Comment on attachment 118320 [details] gdb log =thread-group-added,id="i1" ~"GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2\n" ~"Copyright (C) 2010 Free Software Foundation, Inc.\n" ~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law. Type \"show copying\"\nand \"show warranty\" for details.\n" ~"This GDB was configured as \"x86_64-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) 2-list-features 3-gdb-set print repeat 0 4-gdb-set backtrace limit 1024 5-gdb-set print elements 0 6-enable-pretty-printing 7-file-exec-and-symbols "/home/dnikitin/NetBeansProjects/Welcome_21/dist/Debug/GNU-Linux-x86/welcome_21" 2^done,features=["frozen-varobjs","pending-breakpoints","thread-info","python"] (gdb) 3^done (gdb) 4^done (gdb) 5^done (gdb) 6^done (gdb) 7^done (gdb) 8-file-list-exec-source-file 9cd /home/dnikitin/NetBeansProjects/Welcome_21 10-exec-arguments "arg 1" "arg 2" "arg 3" "arg 4" 11-break-insert -f "/home/dnikitin/NetBeansProjects/Welcome_21/welcome.cc:29" 12-break-insert -t _start 8^done,line="12",file="welcome.cc",fullname="/home/dnikitin/NetBeansProjects/Welcome_21/welcome.cc",macro-info="0" (gdb) &"cd /home/dnikitin/NetBeansProjects/Welcome_21\n" ~"Working directory /home/dnikitin/NetBeansProjects/Welcome_21.\n" 9^done (gdb) 10^done (gdb) 11^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000040095a",func="main()",file="welcome.cc",fullname="/home/dnikitin/NetBeansProjects/Welcome_21/welcome.cc",line="29",times="0",original-location="/home/dnikitin/NetBeansProjects/Welcome_21/welcome.cc:29"} (gdb) 12^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x0000000000400820",at="<_start>",times="0",original-location="_start"} (gdb) 13-exec-run =thread-group-started,id="i1",pid="6384" =thread-created,id="1",group-id="i1" 13^running *running,thread-id="all" (gdb) =library-loaded,id="/lib64/ld-linux-x86-64.so.2",target-name="/lib64/ld-linux-x86-64.so.2",host-name="/lib64/ld-linux-x86-64.so.2",symbols-loaded="0",thread-group="i1" =library-loaded,id="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",target-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",host-name="/usr/lib/x86_64-linux-gnu/libstdc++.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/x86_64-linux-gnu/libm.so.6",target-name="/lib/x86_64-linux-gnu/libm.so.6",host-name="/lib/x86_64-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/x86_64-linux-gnu/libgcc_s.so.1",target-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",host-name="/lib/x86_64-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1" *stopped,reason="breakpoint-hit",disp="del",bkptno="2",frame={addr="0x0000000000400820",func="_start",args=[]},thread-id="1",stopped-threads="all",core="6" (gdb) 14-exec-continue 14^running *running,thread-id="all" (gdb) No answer for: 13-exec-run *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x000000000040095a",func="main",args=[],file="welcome.cc",fullname="/home/dnikitin/NetBeansProjects/Welcome_21/welcome.cc",line="29"},thread-id="1",stopped-threads="all",core="6" (gdb) 15-stack-list-frames 15^done,stack=[frame={level="0",addr="0x000000000040095a",func="main",file="welcome.cc",fullname="/home/dnikitin/NetBeansProjects/Welcome_21/welcome.cc",line="29"}] (gdb) No answer for: 14-exec-continue 16-stack-list-arguments 1 16^done,stack-args=[frame={level="0",args=[]}] (gdb) 17-var-update --all-values * 18-stack-list-locals --simple-values 17^done,changelist=[] (gdb) 18^done,locals=[{name="lv",type="std::vector<int, std::allocator<int> >"},{name="__PRETTY_FUNCTION__",type="char [11]"}] (gdb) 19-var-create - @ lv 20-var-create - @ __PRETTY_FUNCTION__ 21-var-update --all-values * 19^done,name="var1",numchild="0",value="{...}",type="std::vector<int, std::allocator<int> >",thread-id="1",displayhint="array",dynamic="1",has_more="1" (gdb) 20^done,name="var2",numchild="11",value="[11]",type="char [11]",has_more="0" (gdb) 21^done,changelist=[] (gdb) 22-var-show-attributes "var1" 23-var-show-attributes "var2" 22^done,attr="noneditable" (gdb) 23^done,attr="noneditable" (gdb)
On my Ubuntu it works fine, it looks like gdb reports that __PRETTY_FUNCTION__ is really a local variable of type char[11]. What compilers version do you have? Mine is 4.6.
sorry for previous comment. Mine: gcc --version gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2
Created attachment 118328 [details] source file __PRETTY_FUNCTION__ appears in Variable view for this source file, for example.