From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25855 invoked by alias); 17 Sep 2012 05:49:31 -0000 Received: (qmail 25843 invoked by uid 22791); 17 Sep 2012 05:49:30 -0000 X-SWARE-Spam-Status: No, hits=-5.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-pz0-f41.google.com (HELO mail-pz0-f41.google.com) (209.85.210.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 17 Sep 2012 05:49:16 +0000 Received: by dadi14 with SMTP id i14so569843dad.0 for ; Sun, 16 Sep 2012 22:49:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.136.40 with SMTP id px8mr20448179pbb.153.1347860956486; Sun, 16 Sep 2012 22:49:16 -0700 (PDT) Received: by 10.66.220.70 with HTTP; Sun, 16 Sep 2012 22:49:16 -0700 (PDT) In-Reply-To: <20120916080035.GA28890@host2.jankratochvil.net> References: <20120916080035.GA28890@host2.jankratochvil.net> Date: Mon, 17 Sep 2012 05:49:00 -0000 Message-ID: Subject: Re: why in cplus_demangle_operators operation sizeof is expected to be followed with space From: Vasyl Vavrychuk To: Jan Kratochvil Cc: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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 X-SW-Source: 2012-09/txt/msg00047.txt.bz2 Hi, Jan, On Sun, Sep 16, 2012 at 11:00 AM, Jan Kratochvil wrote: > On Sun, 16 Sep 2012 08:58:07 +0200, Vasyl Vavrychuk wrote: >> cp_canonicalize_string(exact_unsigned_base_helper) > > Could you post the mangled form of this name? 'nm' vs. 'nm -C' on the file(s) > should help. This looks to be not a symbol but type name. So I can not locate it with nm. But I have found it directly in the binary. Line containing this text looks like .... ^@exact_unsigned_base_helper^@uint_t<32>^@low_bits_mask_t ....... > The internal error happens > gdb -ex 'b internal_error' -ex 'b print_command' -ex r -ex 'p cp_canonicalize_string("exact_unsigned_base_helper")' --args ./gdb -ex 'print 1' > but GDB does not expect it could demangle such name itself. Do you think the problem is in clang? Could you point out some specification, so I can reference it while contacting clang people. Thanks, Vasyl