public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug python/16470] Crash when inspecting STL containers with GDB pretty print Date: Mon, 27 Jan 2014 08:31:00 -0000 [thread overview] Message-ID: <bug-16470-4717-Nql1CUQSbw@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-16470-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=16470 --- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> --- I can't reproduce it on GDB 7.6, 7.6.1 and mainline on X86-Fedora16. :( $ ./gdb -i mi --data-directory=./data-directory/ =thread-group-added,id="i1" ~"GNU gdb (GDB) 7.6\n" ~"Copyright (C) 2013 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 \"i686-pc-linux-gnu\".\nFor bug reporting instructions, please see:\n" ~"<http://www.gnu.org/software/gdb/bugs/>.\n" (gdb) set print pretty on &"set print pretty on\n" =cmd-param-changed,param="print pretty",value="on" ^done (gdb) set print object on &"set print object on\n" =cmd-param-changed,param="print object",value="on" ^done (gdb) set print static-members on &"set print static-members on\n" ^done (gdb) set print vtbl on &"set print vtbl on\n" =cmd-param-changed,param="print vtbl",value="on" ^done (gdb) set print demangle on &"set print demangle on\n" ^done (gdb) set demangle-style gnu-v3 &"set demangle-style gnu-v3\n" =cmd-param-changed,param="demangle-style",value="gnu-v3" ^done (gdb) -enable-pretty-printing ^done (gdb) -gdb-set print object on ^done (gdb) source /tmp/1.txt &"source /tmp/1.txt\n" ^done (gdb) -file-exec-and-symbols --thread-group i1 /tmp/1.exe ^done (gdb) -break-insert --thread-group i1 -f /tmp/1.cc:12 ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804863e",func="main()",file="1.cc",fullname="/tmp/1.cc",line="12",thread-groups=["i1"],times="0",original-location="/tmp/1.cc:12"} (gdb) -break-insert --thread-group i1 -t -f main ^done,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x080485ee",func="main()",file="1.cc",fullname="/tmp/1.cc",line="6",thread-groups=["i1"],times="0",original-location="main"} (gdb) -exec-run --thread-group i1 =thread-group-started,id="i1",pid="11180" =thread-created,id="1",group-id="i1" ^running *running,thread-id="all" (gdb) =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/libstdc++.so.6",target-name="/usr/lib/libstdc++.so.6",host-name="/usr/lib/libstdc++.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/libm.so.6",target-name="/lib/libm.so.6",host-name="/lib/libm.so.6",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/libgcc_s.so.1",target-name="/lib/libgcc_s.so.1",host-name="/lib/libgcc_s.so.1",symbols-loaded="0",thread-group="i1" =library-loaded,id="/lib/libc.so.6",target-name="/lib/libc.so.6",host-name="/lib/libc.so.6",symbols-loaded="0",thread-group="i1" =breakpoint-modified,bkpt={number="2",type="breakpoint",disp="del",enabled="y",addr="0x080485ee",func="main()",file="1.cc",fullname="/tmp/1.cc",line="6",thread-groups=["i1"],times="1",original-location="main"} *stopped,reason="breakpoint-hit",disp="del",bkptno="2",frame={addr="0x080485ee",func="main",args=[],file="1.cc",fullname="/tmp/1.cc",line="6"},thread-id="1",stopped-threads="all",core="2" =breakpoint-deleted,id="2" (gdb) -var-create --thread-group i1 - * x ^done,name="var1",numchild="0",value="{...}",type="std::list<int, std::allocator<int> >",thread-id="1",dynamic="1",has_more="1" (gdb) -var-create --thread 1 --frame 0 - * x ^done,name="var2",numchild="0",value="{...}",type="std::list<int, std::allocator<int> >",thread-id="1",dynamic="1",has_more="1" (gdb) -var-list-children var2 ^done,numchild="3",children=[child={name="var2.[0]",exp="[0]",numchild="0",type="int",thread-id="1"},child={name="var2.[1]",exp="[1]",numchild="0",type="int",thread-id="1"},child={name="var2.[2]",exp="[2]",numchild="0",type="int",thread-id="1"}],has_more="0" (gdb) -exec-continue --thread 1 ^running *running,thread-id="all" (gdb) =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0804863e",func="main()",file="1.cc",fullname="/tmp/1.cc",line="12",thread-groups=["i1"],times="1",original-location="/tmp/1.cc:12"} *stopped,reason="breakpoint-hit",disp="keep",bkptno="1",frame={addr="0x0804863e",func="main",args=[],file="1.cc",fullname="/tmp/1.cc",line="12"},thread-id="1",stopped-threads="all",core="0" (gdb) -var-update 1 var2 ^done,changelist=[{name="var2",value="{...}",in_scope="true",type_changed="false",new_num_children="1",dynamic="1",has_more="0"},{name="var2.[0]",value="1",in_scope="true",type_changed="false",has_more="0"}] (gdb) -gdb-exit ^exit =thread-exited,id="1",group-id="i1" =thread-group-exited,id="i1" $ cat /tmp/1.txt python import sys sys.path.insert(0, '/home/yao/Source/gnu/gdb_printers/python') from libstdcxx.v6.printers import register_libstdcxx_printers register_libstdcxx_printers (None) end -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2014-01-27 8:31 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-01-20 12:51 [Bug python/16470] New: " aegges at web dot de 2014-01-21 8:41 ` [Bug python/16470] " marc.khouzam at ericsson dot com 2014-01-26 8:12 ` xhpohanka at gmail dot com 2014-01-26 9:28 ` qiyao at gcc dot gnu.org 2014-01-27 7:21 ` xhpohanka at gmail dot com 2014-01-27 8:31 ` qiyao at gcc dot gnu.org [this message] 2014-01-27 12:14 ` xhpohanka at gmail dot com 2021-09-15 7:02 ` beaux_monde at tut dot by 2022-06-07 15:36 ` tromey at sourceware dot org 2023-08-31 19:21 ` tromey at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-16470-4717-Nql1CUQSbw@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).