gdb --interpreter=mi2 -quiet (gdb) -gdb-show version GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: . ^done (gdb) -gdb-set width 0 ^done (gdb) -gdb-set height 0 ^done (gdb) handle SIG32 pass nostop noprint handle SIG32 pass nostop noprint Signal Stop Print Pass to program Description SIG32 No No Yes Real-time event 32 ^done (gdb) handle SIG41 pass nostop noprint handle SIG41 pass nostop noprint Signal Stop Print Pass to program Description SIG41 No No Yes Real-time event 41 ^done (gdb) handle SIG42 pass nostop noprint handle SIG42 pass nostop noprint Signal Stop Print Pass to program Description SIG42 No No Yes Real-time event 42 ^done (gdb) handle SIG43 pass nostop noprint handle SIG43 pass nostop noprint Signal Stop Print Pass to program Description SIG43 No No Yes Real-time event 43 ^done (gdb) -enable-pretty-printing ^done (gdb) -gdb-set charset UTF-8 ^done (gdb) -gdb-set print sevenbit-strings off ^done (gdb) source /home/niko/kde/share/apps/kdevgdb/printers/gdbinit source /home/niko/kde/share/apps/kdevgdb/printers/gdbinit ^done (gdb) -inferior-tty-set /dev/pts/19 ^done (gdb) -environment-cd /home/niko/kdesvn/test-map ^done (gdb) -gdb-set print static-members off ^done (gdb) -gdb-set print asm-demangle on ^done (gdb) -file-exec-and-symbols test-map ^done (gdb) -break-insert -f main ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804899e",func="main()",file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="8",times="0",original-location="main"} (gdb) -exec-run =thread-group-started,id="i1",pid="27595" =thread-created,id="1",group-id="i1" ^running *running,thread-id="all" =library-loaded,id="/lib/ld-linux.so.2",target-name="/lib/ld-linux.so.2",host-name="/lib/ld-linux.so.2",symbols-loaded="0",thread-group="i1" =library-loaded,id="/usr/lib/i386-linux-gnu/libstdc++.so.6",target-name="/usr/lib/i386-linux-gnu/libstdc++.so.6",host-name="/usr/lib/i386-linux-gnu/libstdc++.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/i386-linux-gnu/libm.so.6",target-name="/lib/i386-linux-gnu/libm.so.6",host-name="/lib/i386-linux-gnu/libm.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/i386-linux-gnu/libgcc_s.so.1",target-name="/lib/i386-linux-gnu/libgcc_s.so.1",host-name="/lib/i386-linux-gnu/libgcc_s.so.1",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/i386-linux-gnu/libc.so.6",target-name="/lib/i386-linux-gnu/libc.so.6",host-name="/lib/i386-linux-gnu/libc.so.6",symbols-loaded="0",thread-group="i1" *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0804899e",func="main",args=[],file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="8"},thread-id="1",stopped-threads="all",core="1" (gdb) -thread-info ^done,threads=[{id="1",target-id="process 27595",frame={level="0",addr="0x0804899e",func="main",args=[],file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="8"},state="stopped",core="1"}],current-thread-id="1" (gdb) -break-list ^done,BreakpointTable={nr_rows="1",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804899e",func="main()",file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="8",times="1",original-location="main"}]} (gdb) -stack-list-frames --thread 1 --frame 0 0 21 ^done,stack=[frame={level="0",addr="0x0804899e",func="main",file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="8"}] (gdb) -var-create --thread 1 --frame 0 var0 @ "std" Attempt to use a type name as an expression. ^error,msg="mi_cmd_var_create: unable to create variable object" (gdb) -break-insert -f /home/niko/kdesvn/test-map/main.cpp:15 ^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x08048d82",func="main()",file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="15",times="0",original-location="/home/niko/kdesvn/test-map/main.cpp:15"} (gdb) -stack-list-locals --thread 1 --frame 0 --simple-values ^done,locals=[{name="m",type="std::map, std::allocator >, std::list, std::allocator >, std::allocator, std::allocator > > >, std::less, std::allocator > >, std::allocator, std::allocator > const, std::list, std::allocator >, std::allocator, std::allocator > > > > > >"}] (gdb) -var-update --thread 1 --frame 0 --all-values * ^done,changelist=[] (gdb) -stack-list-arguments --thread 1 --frame 0 0 0 0 ^done,stack-args=[frame={level="0",args=[]}] (gdb) -var-create --thread 1 --frame 0 var1 @ "m" ^error,msg="Cannot access memory at address 0xa4000007" (gdb) -exec-continue ^running *running,thread-id="1" *stopped,reason="breakpoint-hit",disp="keep",bkptno="2",frame={addr="0x08048d82",func="main",args=[],file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="15"},thread-id="1",stopped-threads="all",core="1" (gdb) -thread-info ^done,threads=[{id="1",target-id="process 27595",frame={level="0",addr="0x08048d82",func="main",args=[],file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="15"},state="stopped",core="1"}],current-thread-id="1" (gdb) -stack-list-frames --thread 1 --frame 0 0 21 ^done,stack=[frame={level="0",addr="0x08048d82",func="main",file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="15"}] (gdb) -stack-list-locals --thread 1 --frame 0 --simple-values ^done,locals=[{name="m",type="std::map, std::allocator >, std::list, std::allocator >, std::allocator, std::allocator > > >, std::less, std::allocator > >, std::allocator, std::allocator > const, std::list, std::allocator >, std::allocator, std::allocator > > > > > >"}] (gdb) -var-update --thread 1 --frame 0 --all-values * ^done,changelist=[{name="var1",value="{...}",in_scope="true",type_changed="false",displayhint="map",dynamic="1",has_more="1"}] (gdb) -break-list ^done,BreakpointTable={nr_rows="2",nr_cols="6",hdr=[{width="7",alignment="-1",col_name="number",colhdr="Num"},{width="14",alignment="-1",col_name="type",colhdr="Type"},{width="4",alignment="-1",col_name="disp",colhdr="Disp"},{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},{width="10",alignment="-1",col_name="addr",colhdr="Address"},{width="40",alignment="2",col_name="what",colhdr="What"}],body=[bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804899e",func="main()",file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="8",times="1",original-location="main"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x08048d82",func="main()",file="main.cpp",fullname="/home/niko/kdesvn/test-map/main.cpp",line="15",times="1",original-location="/home/niko/kdesvn/test-map/main.cpp:15"}]} (gdb) -stack-list-arguments --thread 1 --frame 0 0 0 0 ^done,stack-args=[frame={level="0",args=[]}] (gdb) -var-create --thread 1 --frame 0 var2 @ "m" ^done,name="var2",numchild="0",value="{...}",type="std::map, std::allocator >, std::list, std::allocator >, std::allocator, std::allocator > > >, std::less, std::allocator > >, std::allocator, std::allocator > const, std::list, std::allocator >, std::allocator, std::allocator > > > > > >",thread-id="1",displayhint="map",dynamic="1",has_more="1" (gdb) -var-list-children --thread 1 --frame 0 --all-values "var2" 0 5 ^done,numchild="4",displayhint="map",children=[child={name="var2.[0]",exp="[0]",numchild="0",value="\"one\"",type="const std::basic_string, std::allocator >",thread-id="1",displayhint="string",dynamic="1"},child={name="var2.[1]",exp="[1]",numchild="0",value="{...}",type="std::list, std::allocator >, std::allocator, std::allocator > > >",thread-id="1",dynamic="1"},child={name="var2.[2]",exp="[2]",numchild="0",value="\"two\"",type="const std::basic_string, std::allocator >",thread-id="1",displayhint="string",dynamic="1"},child={name="var2.[3]",exp="[3]",numchild="0",value="{...}",type="std::list, std::allocator >, std::allocator, std::allocator > > >",thread-id="1",dynamic="1"}],has_more="0"