From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6055 invoked by alias); 30 Nov 2015 21:18:14 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 6045 invoked by uid 89); 30 Nov 2015 21:18:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f54.google.com Received: from mail-wm0-f54.google.com (HELO mail-wm0-f54.google.com) (74.125.82.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 30 Nov 2015 21:18:13 +0000 Received: by wmec201 with SMTP id c201so156893717wme.1 for ; Mon, 30 Nov 2015 13:18:10 -0800 (PST) X-Received: by 10.194.179.162 with SMTP id dh2mr76033723wjc.17.1448918290426; Mon, 30 Nov 2015 13:18:10 -0800 (PST) Received: from [192.168.42.56] ([80.12.63.179]) by smtp.googlemail.com with ESMTPSA id vu4sm48477409wjc.2.2015.11.30.13.18.09 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Nov 2015 13:18:09 -0800 (PST) To: gdb@sourceware.org From: Xavier de Gaye Subject: MI pretty printing -var-list-children segfaults Message-ID: <565CBD10.3080501@gmail.com> Date: Mon, 30 Nov 2015 21:18:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00049.txt.bz2 gdb 7.10 segfaults after deleting the varobj child of a vector with one element. Does that mean children must no be deleted ? The last part of the debugging session: (gdb) ~"8\t v.push_back(3);\n" *stopped,reason="end-stepping-range",frame={addr="0x0000000000400b35",func="main",args=[],file="pret ty-printing.cc",fullname="/home/xavier/src/pyclewn/pyclewn-hg-working/testsuite/pretty-printing.cc", line="8"},thread-id="1",stopped-threads="all",core="1" (gdb) -enable-pretty-printing ^done (gdb) -var-create var1 * "v" ^done,name="var1",numchild="0",value="{...}",type="std::vector >",thread-id ="1",displayhint="array",dynamic="1",has_more="1" (gdb) -var-list-children var1 ^done,numchild="1",displayhint="array",children=[child={name="var1.[0]",exp="[0]",numchild="0",type= "int",thread-id="1"}],has_more="0" (gdb) -var-delete var1.[0] ^done,ndeleted="1" (gdb) -var-list-children var1 Segmentation fault (core dumped) And the source code: #include #include int main() { std::vector v; v.push_back(2); v.push_back(3); return 0; } Xavier