From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by sourceware.org (Postfix) with ESMTPS id F1D06386102B for ; Tue, 8 Sep 2020 15:13:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org F1D06386102B Received: by mail-ot1-x32c.google.com with SMTP id a2so15104715otr.11 for ; Tue, 08 Sep 2020 08:13:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WQfpxgzf92Z4655l9kvpx9SCsDLSMVoAY9Q46uov+OU=; b=jipT1SquwATD8WK23cWPh7vfHpndnt7c+2g2BTeskTU6cIiGNNvhsZADON1+sogmhI k0w4zq8BJ53C3l0OtLHaPFQQQrzqX9+PDhjCCT79AwU9HhYyU4s4ZgC/L7BPBygB8tIM mR+49kdmKePcU2FprmJmOpEaDl0HCE6T2q7a5TTCDm2hHW+17ZLJdL0Ux17szJiQujhx +tKAcFpFLBMv2iP8aA2/mm9FIR98sTX6J6e9zImaSpvDjZYBi1ZQivgTth1bYiCRwAji FzAv/HZ2RmkE4+vwuBGmOuu4lrY1X0+lFZT4z3tGd9EdFc3gqYbkwgT+SEOdVAl1p+vp nLEQ== X-Gm-Message-State: AOAM531zJpGKVY82371DccOOm08K9WxaXTdoDgVca0l3PXqopXYh7orr 2pNE4kUBybo6G1c5hWFKqc5aBkWPqg5MSNbt5j2rB2KTA6g= X-Google-Smtp-Source: ABdhPJw0k/9B1gdW8ivQ3JVFtUuLHr2MgQhXZmGsOWNd8XsGc/wCdurbPvEcSFtawRdjMgfknMKP9Cv7sgT2kuuZT9c= X-Received: by 2002:a9d:6f05:: with SMTP id n5mr19024761otq.346.1599578028095; Tue, 08 Sep 2020 08:13:48 -0700 (PDT) MIME-Version: 1.0 From: Stas Perepelitsa Date: Tue, 8 Sep 2020 18:13:37 +0300 Message-ID: Subject: Displaying variables from namespace with strange DWARF info To: gdb@sourceware.org X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2020 15:13:50 -0000 Hi All, I've got an ELF file compiled with a proprietary C/C++ compiler, where the project contains namespaces. I=E2=80=99ve parsed DWARF info and it reveals that variables sitting in nam= espace have their names fully qualified, like AAA::BBB::name. Another point, the compilation unit marked as C89 source regardless of C++ source file taken as input file. And there are no attributes =E2=80=99 DW_AT_namespace=E2=80=99 found in DWA= RF info. (Checked same project with ARM compiler and yes, there are those attributes= ) As a result, the variables from namespaces are neither displayed as variables nor as expressions. Is there any chance to teach gdb how to process such names? Regards, Stanislav.