From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D5BE6138CC5 for ; Tue, 24 Mar 2015 20:07:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 23D0EE090F; Tue, 24 Mar 2015 20:07:36 +0000 (UTC) Received: from cdptpa-oedge-vip.email.rr.com (cdptpa-outbound-snat.email.rr.com [107.14.166.227]) by pigeon.gentoo.org (Postfix) with ESMTP id 09211E08F2 for ; Tue, 24 Mar 2015 20:07:35 +0000 (UTC) Received: from [142.196.200.180] ([142.196.200.180:37649] helo=navi.localnet) by cdptpa-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id 73/D3-25039-604C1155; Tue, 24 Mar 2015 20:07:34 +0000 From: Fernando Rodriguez To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: [OFF TOPIC] Qt Creator unable to access containers in debug mode Date: Tue, 24 Mar 2015 16:07 -0400 Message-ID: <2443368.0jsocI3Rm7@navi> User-Agent: KMail/4.14.3 (Linux/3.19.1; KDE/4.14.3; x86_64; ; ) In-Reply-To: References: <1509173.AdsNnimB3Q@navi> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 X-Archives-Salt: 12798b43-6bdc-4ba8-a58f-8ea94c9fd6dd X-Archives-Hash: b4d82fe1bcac6ecac49696ae414d22b8 On Tuesday, March 24, 2015 9:32:07 PM Nikos Chantziaras wrote: > On 24/03/15 21:12, Fernando Rodriguez wrote: > > On Tuesday, March 24, 2015 10:07:56 AM Francisco Ares wrote: > >> Hi, > >> > >> Recently - but can't figure out exactly when - Qt Creator has become unable > >> to access Qt containers (where the STL ones work as expected) on the debug > >> panel. It shows in place of the expected item quantity > >> for a QList, for instance, but for a std::vector, it works, > >> allowing inspection of all items. > >> > >> Any hints on what I may be doing wrong? The headers are all accessible, for > >> instance. Should I build Qt with debug symbols enabled, as recommended for > >> glibc? > >> > >> Using current Qt 4.8.5, Qt Creator 2.8.1, gdb 7.7.1, gcc 4.8.3 > >> > >> Thanks! > >> Francisco > > > > Try to print it from gdb cli, if it works you'll know the issue QtCreator, > > otherwise you're likely missing some symbols. You should always compile any > > development libraries with debug symbols. > > You don't need debug symbols for inspecting containers. They are not > needed. The only reason for enabling debug symbols in Qt is if you want > to step into Qt's code. Thank you. You do need symbols though, just not Qts for this specific case. There are many reasons why you should compile your development libraries with symbols besides stepping into the code. Such as getting a backtrace. Even proprietary (closed-source) libraries often make the symbols available for this reason. -- Fernando Rodriguez