From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 831D43857001 for ; Thu, 2 Sep 2021 20:48:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 831D43857001 Received: by mail-lf1-x129.google.com with SMTP id p38so7229895lfa.0 for ; Thu, 02 Sep 2021 13:48:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=3+GY9AyOkou5mD5Idc0VEC/j/fUTRwNcIC23T4Lu8sM=; b=UnyxhMp0dJTrCszLwfBapWyKq98Uu1R3PzaWBLFsWL8dxq9zlzBgwk89IO/2HPaFNZ M4A7MVDPMBw9YO7EbFDq0w3T28SkaTA/9mwjPi5qLFKK0nO2dTaHDHOILGdHQWDqDpil MYOGHN7V6Y+RvgxolybC4TGePNNVaFHZyoLi6MtKCML5bMdjt/VEC3+grjm/6CSucgYQ WWjfFgugbTy5a7K8N+R1Ec4339sJdsyljUPQh1mSrZbOw7xnsHnU1zvaXkctQ2PFCCjl 5zQ5E9rnnvkDiU10MgAXiz+QVqtMfcH0Fx+45oMY13k8ueaXzXCmsCK1m5dFhTPB1l0E 2RXg== X-Gm-Message-State: AOAM531+ILm4Qpq3GJwAjJpbwkT8SKTJLP/iBBA3vEBGOis1Imap5wxy 0vYH6L62PqmnXwL2SuwcEWYHdnA4Zn8= X-Google-Smtp-Source: ABdhPJzerldaeLvZ3Jdy39Uce4VQ7gsscMESH0GMIsQqxpJwvwjyn26J3WWCZrOld5g/hbVWJHcW1w== X-Received: by 2002:a05:6512:152a:: with SMTP id bq42mr69559lfb.68.1630615682043; Thu, 02 Sep 2021 13:48:02 -0700 (PDT) Received: from [192.168.2.206] ([94.228.207.246]) by smtp.gmail.com with ESMTPSA id bq7sm292689lfb.136.2021.09.02.13.48.01 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Sep 2021 13:48:01 -0700 (PDT) From: Alexander Miloslavskiy Subject: Disambiguating symbols by module To: gdb@sourceware.org Message-ID: Date: Thu, 2 Sep 2021 23:48:00 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3027.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_ABUSEAT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_WEB, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: Thu, 02 Sep 2021 20:48:04 -0000 Hello, I spend much time debugging Java with GDB. In order to obtain current Java callstack, I do this: (gdb) call (void)ps() The problem is, the function's name is too short and gdb confuses it with a variable in a different library: (gdb) info var ^ps$ File ../../cipher/blowfish.c: 256: static const u32 ps[18]; (gdb) info function ^ps$ Non-debugging symbols: 0x00007ffff6d7a3b0 ps Here, the symbol I want is a non-debugging symbol. This also means that I can't disambiguate it by the source file name. Is there a syntax to disambiguate the symbol?